[ 
https://issues.apache.org/jira/browse/LANG-909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13870077#comment-13870077
 ] 

Charles Honton commented on LANG-909:
-------------------------------------

FastDateFormat was designed to be thread safe.  The thread safe wrapper came in 
slightly after FastDateFormat was completed, and before FastDateFormat was 
released.   There was at one point a unit test that proved SimpleDateFormat 
failed multi-thread safety, while FastDateFormat passed.

> Thread-safe wrapper for SimpleDateFormat
> ----------------------------------------
>
>                 Key: LANG-909
>                 URL: https://issues.apache.org/jira/browse/LANG-909
>             Project: Commons Lang
>          Issue Type: New Feature
>          Components: lang.time.*
>    Affects Versions: 3.1
>            Reporter: Dmitry Katsubo
>            Priority: Minor
>             Fix For: Review Patch
>
>         Attachments: DateFormatAdapter.java, ThreadSafeSimpleDateFormat.java, 
> ThreadSafeSimpleDateFormatTest.java
>
>
> {{SimpleDateFormat}} implementation in JDK is known to be [not 
> thread-safe|http://stackoverflow.com/questions/6840803/simpledateformat-thread-safety].
>  The attached helper class solves the problem by holding a separate instance 
> of {{SimpleDateFormat}} per thread.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to