* java/io/File.java (nextValue): Now synchronized.
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 Feb 2000 18:44:37 +0000 (18:44 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 Feb 2000 18:44:37 +0000 (18:44 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31925 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/java/io/File.java

index 35e132e..a1ec0f2 100644 (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.
index 229125e..df89909 100644 (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);
   }