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

DateConverter is not thread-safe

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 1.4.19, 6.2.0
    • None
    • wicket
    • None

    Description

      As described in https://issues.apache.org/jira/browse/WICKET-102 , DateConverter internally uses DateFormat to do its job, without the external synchronization DateFormat's javadoc states it need.

      Since DateConverter is used by Wicket in a multi-threaded scenario (converters instances can be shared between threads) it should guarantee thread-safeness.
      A user of DateConverter (and he could be unaware of using a DateConverter) shouldn't worry about its internal mechanics, thus DateConverter should handle the synchronization by itself.

      Tested on v1.4.19, and just browsed v6.2.0 sources to check if something changed.

      Thanks in advance, and sorry for my sloppy english.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              soulspirit SoulSpirit
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: