Uploaded image for project: 'Maven SCM'
  1. Maven SCM
  2. SCM-474

Make class ChangeSet thread-safe

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.2, 1.3
    • 1.3
    • maven-scm-api
    • None
    • Patch

    Description

      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

      Attachments

        1. MNG-474-maven-core.patch
          16 kB
          Andrei Solntsev

        Activity

          People

            olamy Olivier Lamy
            asolntsev Andrei Solntsev
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: