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

From-SVN: r31925
This commit is contained in:
Tom Tromey 2000-02-11 18:44:37 +00:00 committed by Tom Tromey
parent c4ce154a39
commit 9d381124d8
2 changed files with 5 additions and 1 deletions

View file

@ -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.

View file

@ -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);
}