2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
* java/sql/Timestamp.java (valueOf): Synchronize access to
dateFormat.
From-SVN: r85460
+2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
+
+ * java/sql/Timestamp.java (valueOf): Synchronize access to dateFormat.
+
2004-08-02 Bryce McKinlay <mckinlay@redhat.com>
* testsuite/libjava.compile/PR16701.java: New test.
try
{
- java.util.Date d = (java.util.Date) dateFormat.parseObject(str);
+ java.util.Date d;
+ synchronized (dateFormat)
+ {
+ d = (java.util.Date) dateFormat.parseObject(str);
+ }
if (d == null)
throw new IllegalArgumentException(str);