Commit 9d381124 by Tom Tromey Committed by Tom Tromey

* java/io/File.java (nextValue): Now synchronized.

From-SVN: r31925
parent c4ce154a
2000-02-11 Tom Tromey <tromey@cygnus.com>
* java/io/File.java (nextValue): Now synchronized.
2000-02-10 Tom Tromey <tromey@cygnus.com> 2000-02-10 Tom Tromey <tromey@cygnus.com>
* java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag. * java/io/natFileDescriptorPosix.cc (open): Recognize EXCL flag.
......
...@@ -215,7 +215,7 @@ public class File implements Serializable ...@@ -215,7 +215,7 @@ public class File implements Serializable
return mkdirs (new File (path)); return mkdirs (new File (path));
} }
private static String nextValue () private static synchronized String nextValue ()
{ {
return Long.toString(counter++, Character.MAX_RADIX); return Long.toString(counter++, Character.MAX_RADIX);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment