Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-1926

PropertyDisplayBlocks Date's display block is not thread safe

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 5.3.1, 5.3.2, 5.3.3, 5.3.4, 5.3
    • Fix Version/s: 5.4
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      In class org.apache.tapestry5.corelib.pages.PropertyDisplayBlocks the DateFormat used to format Dates is declared as:

      private final DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.MEDIUM, locale);

      Which is not correct because DateFormat is not thread safe and pages aren't pooled any more.

        Attachments

          Activity

            People

            • Assignee:
              hlship Howard M. Lewis Ship
              Reporter:
              lucam Luca Menegus
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: