SimpleDateFormat is not thread safe, so using a static is a problem
-------------------------------------------------------------------

                 Key: WINK-329
                 URL: https://issues.apache.org/jira/browse/WINK-329
             Project: Wink
          Issue Type: Bug
          Components: WebDAV
            Reporter: Mirko Friedenhagen
            Priority: Critical


See:
http://svn.apache.org/viewvc/incubator/wink/trunk/wink-webdav/src/main/java/org/apache/wink/webdav/model/WebDAVModelHelper.java?revision=918698&view=markup
and 
http://www.codefutures.com/weblog/andygrove/2007/10/simpledateformat-and-thread-safety.html

Accessing the static SimpleDateFormat dateFormat from multiple threads will 
lead to problems. Either clone it before usage or create a new instance in 
convertDateToXMLDate and convertXMLDateToDate.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to