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: [email protected]
        ReportedBy: [EMAIL PROTECTED]


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.
_______________________________________________
logback-dev mailing list
[email protected]
http://qos.ch/mailman/listinfo/logback-dev

Reply via email to