Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0 branch (discontinued), 1.3.0-beta1
-
None
-
None
Description
DateConverter uses a 'cache' (HashMap) with DateFormats. The problem (don't ask me why I never noticed) is that SimpleDateFormats are not thread safe. Never were, never will be (see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4264153 and http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4228335)
The solution is the remove setDateFormat (which is probably never used by anyone anyway), and always return new instances.
Attachments
Issue Links
- relates to
-
WICKET-4833 DateConverter is not thread-safe
- Closed