diff --git a/src/main/org/apache/tools/ant/types/selectors/SelectorUtils.java b/src/main/org/apache/tools/ant/types/selectors/SelectorUtils.java index 0bbc67b06..f8aba1d00 100644 --- a/src/main/org/apache/tools/ant/types/selectors/SelectorUtils.java +++ b/src/main/org/apache/tools/ant/types/selectors/SelectorUtils.java @@ -154,6 +154,8 @@ public final class SelectorUtils { } // Fail if string is not exhausted or pattern is exhausted + // Otherwise the pattern now holds ** while string is not exhausted + // this will generate false positives but we can live with that. return strIdxStart > strIdxEnd || patIdxStart <= patIdxEnd; }