Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-102

potential concurrency problem with DateConverter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0 branch (discontinued), 1.3.0-beta1
    • None
    • None

    Description

      DateConverter uses a 'cache' (HashMap) with DateFormats. The problem (don't ask me why I never noticed) is that SimpleDateFormats are not thread safe. Never were, never will be (see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4264153 and http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4228335)

      The solution is the remove setDateFormat (which is probably never used by anyone anyway), and always return new instances.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ehillenius Eelco Hillenius
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: