[logback-dev] [Bug 117] New: Synchronization of SimpleDateFormat object in DateConverter
bugzilla-daemon at pixie.qos.ch
bugzilla-daemon at pixie.qos.ch
Thu Jan 10 12:09:15 CET 2008
http://bugzilla.qos.ch/show_bug.cgi?id=117
Summary: Synchronization of SimpleDateFormat object in
DateConverter
Product: logback-classic
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Other
AssignedTo: logback-dev at qos.ch
ReportedBy: anders at hammar.net
According to the API documentation of SimpleDateFormat, date formats are not
synchronized and it is recommended to create separate format instances for each
thread.
However, a possibly simpler (mer efficient) solution would be to synchronize on
the SimpleDateFormat object in the convert() method to prevent two threads to
access it concurrently.
--
Configure bugmail: http://bugzilla.qos.ch/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the logback-dev
mailing list