Buggy code:
private static final boolean ON_NETWARE = Os . isFamily ( "netware" ) ; private static final boolean ON_DOS = Os . isFamily ( "dos" ) ; private static final boolean ON_WIN9X = Os . isFamily ( "win9x" ) ; private static final boolean ON_WINDOWS = Os . isFamily ( "windows" ) ; static final int BUF_SIZE = 8192 ; public static final long FAT_FILE_TIMESTAMP_GRANULARITY = 2000 ; public static final long UNIX_FILE_TIMESTAMP_GRANULARITY = 1000 ; public static final long NTFS_FILE_TIMESTAMP_GRANULARITY = 1 ; private Object cacheFromUriLock = new Object ( ) ; private String cacheFromUriRequest = null ; private String cacheFromUriResponse = null ; public static FileUtils newFileUtils ( ) { } public static FileUtils getFileUtils ( ) { } protected FileUtils ( ) { } public URL getFileURL ( File file ) throws MalformedURLException { } public void copyFile ( String sourceFile , String destFile ) throws IOException { } public void copyFile ( String sourceFile , String destFile , FilterSetCollection filters ) throws IOException { } public void copyFile ( String sourceFile , String destFile , FilterSetCollection filters , boolean overwrite ) throws IOException { } public void copyFile ( String sourceFile , String destFile , FilterSetCollection filters , boolean overwrite , boolean preserveLastModified ) throws IOException { } public void copyFile ( String sourceFile , String destFile , FilterSetCollection filters , boolean overwrite , boolean preserveLastModified , String encoding ) throws IOException { } public void copyFile ( String sourceFile , String destFile , FilterSetCollection filters , Vector filterChains , boolean overwrite , boolean preserveLastModified , String encoding , Project project ) throws IOException { } public void copyFile ( String sourceFile , String destFile , FilterSetCollection filters , Vector filterChains , boolean overwrite , boolean preserveLastModified , String inputEncoding , String outputEncoding , Project project ) throws IOException { } public void copyFile ( File sourceFile , File destFile ) throws IOException { } public void copyFile ( File sourceFile , File destFile , FilterSetCollection filters ) throws IOException { } public void copyFile ( File sourceFile , File destFile , FilterSetCollection filters , boolean overwrite ) throws IOException { } public void copyFile ( File sourceFile , File destFile , FilterSetCollection filters , boolean overwrite , boolean preserveLastModified ) throws IOException { } public void copyFile ( File sourceFile , File destFile , FilterSetCollection filters , boolean overwrite , boolean preserveLastModified , String encoding ) throws IOException { } public void copyFile ( File sourceFile , File destFile , FilterSetCollection filters , Vector filterChains , boolean overwrite , boolean preserveLastModified , String encoding , Project project ) throws IOException { } public void copyFile ( File sourceFile , File destFile , FilterSetCollection filters , Vector filterChains , boolean overwrite , boolean preserveLastModified , String inputEncoding , String outputEncoding , Project project ) throws IOException { } public void copyFile ( File sourceFile , File destFile , FilterSetCollection filters , Vector filterChains , boolean overwrite , boolean preserveLastModified , boolean append , String inputEncoding , String outputEncoding , Project project ) throws IOException { } public void setFileLastModified ( File file , long time ) { } public File resolveFile ( File file , String filename ) { } public static boolean isContextRelativePath ( String filename ) { } public static boolean isAbsolutePath ( String filename ) { } public static String translatePath ( String toProcess ) { } public File normalize ( final String path ) { } public String [ ] dissect ( String path ) { } public String toVMSPath ( File f ) { } public File createTempFile ( String prefix , String suffix , File parentDir ) { } public File createTempFile ( String prefix , String suffix , File parentDir , boolean deleteOnExit , boolean createFile ) { File result = null ; String parent = ( parentDir == null ) ? System . getProperty ( "java.io.tmpdir" ) : parentDir . getPath ( ) ; if ( createFile ) { try { result = File . createTempFile ( prefix , suffix , new File ( parent ) ) ; } catch ( IOException e ) { throw new BuildException ( ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>create<seq2seq4repair_space>tempfile<seq2seq4repair_space>in<seq2seq4repair_space>" + parent ) , e ) ; } } else { DecimalFormat fmt = new DecimalFormat ( "#####" ) ; synchronized ( FileUtils . rand ) { do { <START_BUG> result = new File ( parent , ( ( prefix + ( fmt . format ( Math . abs ( FileUtils . rand . nextInt ( ) ) ) ) ) + suffix ) ) ; <END_BUG> } while ( result . exists ( ) ) ; } } if ( deleteOnExit ) { result . deleteOnExit ( ) ; } return result ; } public File createTempFile ( String prefix , String suffix , File parentDir , boolean deleteOnExit ) { } public boolean contentEquals ( File f1 , File f2 ) throws IOException { } public boolean contentEquals ( File f1 , File f2 , boolean textfile ) throws IOException { } public File getParentFile ( File f ) { } public static String readFully ( Reader rdr ) throws IOException { } public static String readFully ( Reader rdr , int bufferSize ) throws IOException { } public static String safeReadFully ( Reader reader ) throws IOException { } public boolean createNewFile ( File f ) throws IOException { } public boolean createNewFile ( File f , boolean mkdirs ) throws IOException { } public boolean isSymbolicLink ( File parent , String name ) throws IOException { } public String removeLeadingPath ( File leading , File path ) { } public boolean isLeadingPath ( File leading , File path ) { } public String toURI ( String path ) { } public String fromURI ( String uri ) { } public boolean fileNameEquals ( File f1 , File f2 ) { } public void rename ( File from , File to ) throws IOException { }

Fix:
result = new File ( parent , ( ( prefix + ( fmt . format ( FileUtils . rand . nextInt ( Integer . MAX_VALUE ) ) ) ) + suffix ) ) ;