Buggy code:
public class Delete extends MatchingTask { private static final int DELETE_RETRY_SLEEP_MILLIS = 10 ; private static final ResourceComparator REVERSE_FILESYSTEM = new org . apache . tools . ant . types . resources . comparators . Reverse ( new FileSystem ( ) ) ; private static final ResourceSelector EXISTS = new Exists ( ) ; private static class ReverseDirs implements ResourceCollection { static final Comparator REVERSE = new Comparator ( ) { public int compare ( Object foo , Object bar ) { } } ; File basedir ; String [ ] dirs ; ReverseDirs ( File basedir , String [ ] dirs ) { } public Iterator iterator ( ) { } public boolean isFilesystemOnly ( ) { } public int size ( ) { } } protected File file = null ; protected File dir = null ; protected Vector filesets = new Vector ( ) ; protected boolean usedMatchingTask = false ; protected boolean includeEmpty = false ; private int verbosity = Project . MSG_VERBOSE ; private boolean quiet = false ; private boolean failonerror = true ; private boolean deleteOnExit = false ; private Resources rcs = null ; public void setFile ( File file ) { } public void setDir ( File dir ) { } public void setVerbose ( boolean verbose ) { } public void setQuiet ( boolean quiet ) { } public void setFailOnError ( boolean failonerror ) { } public void setDeleteOnExit ( boolean deleteOnExit ) { } public void setIncludeEmptyDirs ( boolean includeEmpty ) { } public void addFileset ( FileSet set ) { } public void add ( ResourceCollection rc ) { } public NameEntry createInclude ( ) { } public NameEntry createIncludesFile ( ) { } public NameEntry createExclude ( ) { } public NameEntry createExcludesFile ( ) { } public PatternSet createPatternSet ( ) { } public void setIncludes ( String includes ) { } public void setExcludes ( String excludes ) { } public void setDefaultexcludes ( boolean useDefaultExcludes ) { } public void setIncludesfile ( File includesfile ) { } public void setExcludesfile ( File excludesfile ) { } public void setCaseSensitive ( boolean isCaseSensitive ) { } public void setFollowSymlinks ( boolean followSymlinks ) { } public void addSelector ( SelectSelector selector ) { } public void addAnd ( AndSelector selector ) { } public void addOr ( OrSelector selector ) { } public void addNot ( NotSelector selector ) { } public void addNone ( NoneSelector selector ) { } public void addMajority ( MajoritySelector selector ) { } public void addDate ( DateSelector selector ) { } public void addSize ( SizeSelector selector ) { } public void addFilename ( FilenameSelector selector ) { } public void addCustom ( ExtendSelector selector ) { } public void addContains ( ContainsSelector selector ) { } public void addPresent ( PresentSelector selector ) { } public void addDepth ( DepthSelector selector ) { } public void addDepend ( DependSelector selector ) { } public void addContainsRegexp ( ContainsRegexpSelector selector ) { } public void addModified ( ModifiedSelector selector ) { } public void add ( FileSelector selector ) { } public void execute ( ) throws BuildException { } private void handle ( String msg ) { } private void handle ( Exception e ) { if ( failonerror ) { throw e instanceof BuildException ? ( ( BuildException ) ( e ) ) : new BuildException ( e ) ; } <START_BUG> log ( e . getMessage ( ) , ( quiet ? Project . MSG_VERBOSE : verbosity ) ) ; <END_BUG> } private boolean delete ( File f ) { } protected void removeDir ( File d ) { } protected void removeFiles ( File d , String [ ] files , String [ ] dirs ) { } }

Fix:
log ( e , ( quiet ? Project . MSG_VERBOSE : verbosity ) ) ;