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

PropertyDisplayBlocks Date's display block is not thread safe

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 5.3.1, 5.3.2, 5.3.3, 5.3.4, 5.3
    • 5.4
    • tapestry-core
    • 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

            hlship Howard Lewis Ship
            lucam Luca Menegus
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: