commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LANG-909) Thread-safe wrapper for SimpleDateFormat
Date Tue, 22 Oct 2013 16:25:50 GMT

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

Henri Yandell commented on LANG-909:
------------------------------------

Agreed - the proposal for Lang 4.0 is to be Java 8 compatible. So my note is meant to read
as 'would we be removing this in Lang 4.0?'

> 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#6144)

Mime
View raw message