Buggy code:
public class DependSet extends MatchingTask { private ArrayList sourceFileSets = new ArrayList ( ) ; private ArrayList sourceFileLists = new ArrayList ( ) ; private ArrayList targetFileSets = new ArrayList ( ) ; private ArrayList targetFileLists = new ArrayList ( ) ; public DependSet ( ) { } public void addSrcfilelist ( FileList fl ) { } public void addSrcfileset ( FileSet fs ) { } public void addTargetfilelist ( FileList fl ) { } public void addTargetfileset ( FileSet fs ) { } public void execute ( ) throws TaskException { if ( ( ( sourceFileSets . size ( ) ) == 0 ) && ( ( sourceFileLists . size ( ) ) == 0 ) ) { throw new TaskException ( "At<seq2seq4repair_space>least<seq2seq4repair_space>one<seq2seq4repair_space><srcfileset><seq2seq4repair_space>or<seq2seq4repair_space><srcfilelist><seq2seq4repair_space>element<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>set" ) ; } if ( ( ( targetFileSets . size ( ) ) == 0 ) && ( ( targetFileLists . size ( ) ) == 0 ) ) { throw new TaskException ( "At<seq2seq4repair_space>least<seq2seq4repair_space>one<seq2seq4repair_space><targetfileset><seq2seq4repair_space>or<seq2seq4repair_space><targetfilelist><seq2seq4repair_space>element<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>set" ) ; } long now = new Date ( ) . getTime ( ) ; <START_BUG> if ( Os . isFamily ( "windows" ) ) { <END_BUG> now += 2000 ; } ArrayList allTargets = new ArrayList ( ) ; Iterator enumTargetSets = targetFileSets . iterator ( ) ; while ( enumTargetSets . hasNext ( ) ) { FileSet targetFS = ( ( FileSet ) ( enumTargetSets . next ( ) ) ) ; DirectoryScanner targetDS = ScannerUtil . getDirectoryScanner ( targetFS ) ; String [ ] targetFiles = targetDS . getIncludedFiles ( ) ; for ( int i = 0 ; i < ( targetFiles . length ) ; i ++ ) { File dest = new File ( targetFS . getDir ( ) , targetFiles [ i ] ) ; allTargets . add ( dest ) ; if ( ( dest . lastModified ( ) ) > now ) { getLogger ( ) . warn ( ( ( "Warning:<seq2seq4repair_space>" + ( targetFiles [ i ] ) ) + "<seq2seq4repair_space>modified<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>future." ) ) ; } } } boolean upToDate = true ; Iterator enumTargetLists = targetFileLists . iterator ( ) ; while ( enumTargetLists . hasNext ( ) ) { FileList targetFL = ( ( FileList ) ( enumTargetLists . next ( ) ) ) ; String [ ] targetFiles = targetFL . getFiles ( ) ; for ( int i = 0 ; i < ( targetFiles . length ) ; i ++ ) { File dest = new File ( targetFL . getDir ( ) , targetFiles [ i ] ) ; if ( ! ( dest . exists ( ) ) ) { getLogger ( ) . debug ( ( ( targetFiles [ i ] ) + "<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>exist." ) ) ; upToDate = false ; continue ; } else { allTargets . add ( dest ) ; } if ( ( dest . lastModified ( ) ) > now ) { getLogger ( ) . warn ( ( ( "Warning:<seq2seq4repair_space>" + ( targetFiles [ i ] ) ) + "<seq2seq4repair_space>modified<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>future." ) ) ; } } } if ( upToDate ) { Iterator enumSourceSets = sourceFileSets . iterator ( ) ; while ( upToDate && ( enumSourceSets . hasNext ( ) ) ) { FileSet sourceFS = ( ( FileSet ) ( enumSourceSets . next ( ) ) ) ; DirectoryScanner sourceDS = ScannerUtil . getDirectoryScanner ( sourceFS ) ; String [ ] sourceFiles = sourceDS . getIncludedFiles ( ) ; for ( int i = 0 ; upToDate && ( i < ( sourceFiles . length ) ) ; i ++ ) { File src = new File ( sourceFS . getDir ( ) , sourceFiles [ i ] ) ; if ( ( src . lastModified ( ) ) > now ) { getLogger ( ) . warn ( ( ( "Warning:<seq2seq4repair_space>" + ( sourceFiles [ i ] ) ) + "<seq2seq4repair_space>modified<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>future." ) ) ; } Iterator enumTargets = allTargets . iterator ( ) ; while ( upToDate && ( enumTargets . hasNext ( ) ) ) { File dest = ( ( File ) ( enumTargets . next ( ) ) ) ; if ( ( src . lastModified ( ) ) > ( dest . lastModified ( ) ) ) { getLogger ( ) . debug ( ( ( ( dest . getPath ( ) ) + "<seq2seq4repair_space>is<seq2seq4repair_space>out<seq2seq4repair_space>of<seq2seq4repair_space>date<seq2seq4repair_space>with<seq2seq4repair_space>respect<seq2seq4repair_space>to<seq2seq4repair_space>" ) + ( sourceFiles [ i ] ) ) ) ; upToDate = false ; } } } } } if ( upToDate ) { Iterator enumSourceLists = sourceFileLists . iterator ( ) ; while ( upToDate && ( enumSourceLists . hasNext ( ) ) ) { FileList sourceFL = ( ( FileList ) ( enumSourceLists . next ( ) ) ) ; String [ ] sourceFiles = sourceFL . getFiles ( ) ; int i = 0 ; do { File src = new File ( sourceFL . getDir ( ) , sourceFiles [ i ] ) ; if ( ( src . lastModified ( ) ) > now ) { getLogger ( ) . warn ( ( ( "Warning:<seq2seq4repair_space>" + ( sourceFiles [ i ] ) ) + "<seq2seq4repair_space>modified<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>future." ) ) ; } if ( ! ( src . exists ( ) ) ) { getLogger ( ) . debug ( ( ( sourceFiles [ i ] ) + "<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>exist." ) ) ; upToDate = false ; break ; } Iterator enumTargets = allTargets . iterator ( ) ; while ( upToDate && ( enumTargets . hasNext ( ) ) ) { File dest = ( ( File ) ( enumTargets . next ( ) ) ) ; if ( ( src . lastModified ( ) ) > ( dest . lastModified ( ) ) ) { getLogger ( ) . debug ( ( ( ( dest . getPath ( ) ) + "<seq2seq4repair_space>is<seq2seq4repair_space>out<seq2seq4repair_space>of<seq2seq4repair_space>date<seq2seq4repair_space>with<seq2seq4repair_space>respect<seq2seq4repair_space>to<seq2seq4repair_space>" ) + ( sourceFiles [ i ] ) ) ) ; upToDate = false ; } } }

Fix:
if ( Os . isFamily ( OS_FAMILY_WINDOWS ) ) {