This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Patch: bug fix for File.java
- To: Java Patch List <java-patches at sourceware dot cygnus dot com>
- Subject: Patch: bug fix for File.java
- From: Tom Tromey <tromey at cygnus dot com>
- Date: 11 Feb 2000 11:43:36 -0700
- Reply-To: tromey at cygnus dot com
I'm committing this patch.
It ensures that the new File.createTempFile will never return the same
filename twice.
2000-02-11 Tom Tromey <tromey@cygnus.com>
* java/io/File.java (nextValue): Now synchronized.
Tom
Index: java/io/File.java
===================================================================
RCS file: /cvs/java/libgcj/libjava/java/io/File.java,v
retrieving revision 1.5
diff -u -r1.5 File.java
--- File.java 2000/02/11 17:32:52 1.5
+++ File.java 2000/02/11 18:15:47
@@ -215,7 +215,7 @@
return mkdirs (new File (path));
}
- private static String nextValue ()
+ private static synchronized String nextValue ()
{
return Long.toString(counter++, Character.MAX_RADIX);
}