diff options
-rw-r--r-- | libjava/ChangeLog | 4 | ||||
-rw-r--r-- | libjava/java/io/File.java | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 35e132e..a1ec0f2 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,7 @@ +2000-02-11 Tom Tromey <tromey@cygnus.com> + + * java/io/File.java (nextValue): Now synchronized. + 2000-02-10 Tom Tromey <tromey@cygnus.com> * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag. diff --git a/libjava/java/io/File.java b/libjava/java/io/File.java index 229125e..df89909 100644 --- a/libjava/java/io/File.java +++ b/libjava/java/io/File.java @@ -215,7 +215,7 @@ public class File implements Serializable return mkdirs (new File (path)); } - private static String nextValue () + private static synchronized String nextValue () { return Long.toString(counter++, Character.MAX_RADIX); } |