On Apr 1, 2008, at 2:17 AM, [EMAIL PROTECTED] wrote:
fix threading issue (DateFormat is not thread-safe)

    public String getLastAccessTime() {
-        return formatter.format(new Date(wc.getLastAccessTime()));
+        synchronized (this.formatter) {
+ return formatter.format(new Date(wc.getLastAccessTime()));
+        }
    }

The better fix is to use FastDateFormat which features thread safe formatting.

Vadim

Reply via email to