DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32311>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32311





------- Additional Comments From [EMAIL PROTECTED]  2006-12-13 15:29 -------
The suggestion below of a static cache seems bad as SimpleDateFormat is not
thread safe. 

However we only access the formatter object in a very small location, so we
could change:

            if (tz != null) {
                formatter.setTimeZone(tz);
            }
            formatted = formatter.format(value);

to

         synchronized(formatter) {
            if (tz != null) {
                formatter.setTimeZone(tz);
            }
            formatted = formatter.format(value);
         }

The current code does also access formatter when creating, but that's because
it's doing daft things in creation. The code below gets rid of that.

So this is fixable and needs a demonstrative test to be created. 

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to