Buggy code:
public class Delete extends MatchingTask { 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 ; 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 setIncludeEmptyDirs ( boolean includeEmpty ) { } public void addFileset ( FileSet set ) { } 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 execute ( ) throws BuildException { if ( usedMatchingTask ) { log ( ( "DEPRECATED<seq2seq4repair_space>-<seq2seq4repair_space>Use<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>implicit<seq2seq4repair_space>FileSet<seq2seq4repair_space>is<seq2seq4repair_space>deprecated.<seq2seq4repair_space>" + "Use<seq2seq4repair_space>a<seq2seq4repair_space>nested<seq2seq4repair_space>fileset<seq2seq4repair_space>element<seq2seq4repair_space>instead." ) ) ; } if ( ( ( ( file ) == null ) && ( ( dir ) == null ) ) && ( ( filesets . size ( ) ) == 0 ) ) { throw new BuildException ( ( "At<seq2seq4repair_space>least<seq2seq4repair_space>one<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>file<seq2seq4repair_space>or<seq2seq4repair_space>dir<seq2seq4repair_space>" + ( "attributes,<seq2seq4repair_space>or<seq2seq4repair_space>a<seq2seq4repair_space>fileset<seq2seq4repair_space>element,<seq2seq4repair_space>" + "must<seq2seq4repair_space>be<seq2seq4repair_space>set." ) ) ) ; } if ( ( quiet ) && ( failonerror ) ) { <START_BUG> throw new BuildException ( ( "quiet<seq2seq4repair_space>and<seq2seq4repair_space>failonerror<seq2seq4repair_space>cannot<seq2seq4repair_space>both<seq2seq4repair_space>be<seq2seq4repair_space>" + "set<seq2seq4repair_space>to<seq2seq4repair_space>true" ) , location ) ; <END_BUG> } if ( ( file ) != null ) { if ( file . exists ( ) ) { if ( file . isDirectory ( ) ) { log ( ( ( ( "Directory<seq2seq4repair_space>" + ( file . getAbsolutePath ( ) ) ) + "<seq2seq4repair_space>cannot<seq2seq4repair_space>be<seq2seq4repair_space>removed<seq2seq4repair_space>using<seq2seq4repair_space>the<seq2seq4repair_space>file<seq2seq4repair_space>attribute.<seq2seq4repair_space>" ) + "Use<seq2seq4repair_space>dir<seq2seq4repair_space>instead." ) ) ; } else { log ( ( "Deleting:<seq2seq4repair_space>" + ( file . getAbsolutePath ( ) ) ) ) ; if ( ! ( file . delete ( ) ) ) { String message = "Unable<seq2seq4repair_space>to<seq2seq4repair_space>delete<seq2seq4repair_space>file<seq2seq4repair_space>" + ( file . getAbsolutePath ( ) ) ; if ( failonerror ) { throw new BuildException ( message ) ; } else { log ( message , ( quiet ? Project . MSG_VERBOSE : Project . MSG_WARN ) ) ; } } } } else { log ( ( ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>find<seq2seq4repair_space>file<seq2seq4repair_space>" + ( file . getAbsolutePath ( ) ) ) + "<seq2seq4repair_space>to<seq2seq4repair_space>delete." ) , MSG_VERBOSE ) ; } } if ( ( ( ( ( dir ) != null ) && ( dir . exists ( ) ) ) && ( dir . isDirectory ( ) ) ) && ( ! ( usedMatchingTask ) ) ) { if ( ( verbosity ) == ( Project . MSG_VERBOSE ) ) { log ( ( "Deleting<seq2seq4repair_space>directory<seq2seq4repair_space>" + ( dir . getAbsolutePath ( ) ) ) ) ; } removeDir ( dir ) ; } for ( int i = 0 ; i < ( filesets . size ( ) ) ; i ++ ) { FileSet fs = ( ( FileSet ) ( filesets . elementAt ( i ) ) ) ; try { DirectoryScanner ds = fs . getDirectoryScanner ( getProject ( ) ) ; String [ ] files = ds . getIncludedFiles ( ) ; String [ ] dirs = ds . getIncludedDirectories ( ) ; removeFiles ( fs . getDir ( getProject ( ) ) , files , dirs ) ; } catch ( BuildException be ) { if ( failonerror ) { throw be ; } else { log ( be . getMessage ( ) , ( quiet ? Project . MSG_VERBOSE : Project . MSG_WARN ) ) ; } } } if ( ( usedMatchingTask ) && ( ( dir ) != null ) ) { try { DirectoryScanner ds = super . getDirectoryScanner ( dir ) ; String [ ] files = ds . getIncludedFiles ( ) ; String [ ] dirs = ds . getIncludedDirectories ( ) ; removeFiles ( dir , files , dirs ) ; } catch ( BuildException be ) { if ( failonerror ) { throw be ; } else { log ( be . getMessage ( ) , ( quiet ? Project . MSG_VERBOSE : Project . MSG_WARN ) ) ; } } } } protected void removeDir ( File d ) { } protected void removeFiles ( File d , String [ ] files , String [ ] dirs ) { } }

Fix:
throw new BuildException ( ( "quiet<seq2seq4repair_space>and<seq2seq4repair_space>failonerror<seq2seq4repair_space>cannot<seq2seq4repair_space>both<seq2seq4repair_space>be<seq2seq4repair_space>" + "set<seq2seq4repair_space>to<seq2seq4repair_space>true" ) , getLocation ( ) ) ;