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

ASF GitHub Bot commented on SCM-474:
------------------------------------

jira-importer opened a new issue, #688:
URL: https://github.com/apache/maven-scm/issues/688

   **[Andrei 
Solntsev](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=asolntsev)**
 opened 
**[SCM-474](https://issues.apache.org/jira/browse/SCM-474?redirect=false)** and 
commented
   
   Class org.apache.maven.scm.ChangeSet declares a static member of type 
SimpleDateFormat which is not thread-safe.
   If 2 concurrent treads try to use it, it will lead to error.
   
   Proposed solution is to use class ThreadSafeDateFormat described here: 
http://asolntsev.blogspot.com/2009/05/threadsafedateformat.html
   
   
   ---
   
   **Affects:** 1.2, 1.3
   
   **Attachments:**
   - 
[MNG-474-maven-core.patch](https://issues.apache.org/jira/secure/attachment/12718706/MNG-474-maven-core.patch)
 (_16.08 kB_)
   




> Make class ChangeSet thread-safe
> --------------------------------
>
>                 Key: SCM-474
>                 URL: https://issues.apache.org/jira/browse/SCM-474
>             Project: Maven SCM (Moved to GitHub Issues)
>          Issue Type: Improvement
>          Components: maven-scm-api
>    Affects Versions: 1.2, 1.3
>            Reporter: Andrei Solntsev
>            Assignee: Olivier Lamy
>            Priority: Minor
>             Fix For: 1.3
>
>         Attachments: MNG-474-maven-core.patch
>
>
> Class org.apache.maven.scm.ChangeSet declares a static member of type 
> SimpleDateFormat which is not thread-safe.
> If 2 concurrent treads try to use it, it will lead to error.
> Proposed solution is to use class ThreadSafeDateFormat described here: 
> http://asolntsev.blogspot.com/2009/05/threadsafedateformat.html



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to