Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-2034

DatePropertyTagRule and StringArrayPropertyTagRule cache mutable objects

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0-core
    • None
    • None

    Description

      When DatePropertyTagRule and StringArrayPropertyTagRule are applied to attributes specified as string literals, the parsing results are cached on the tag. The issue is that the parsing results are mutable (java.util.Date and String[]), so they a) cannot be shared; b) cannot be cached.

      The fix will be to clone a new object every time LiteralPropertyMetadata.applyMetadata() is called.

      Attachments

        1. trinidad-2034.diff
          4 kB
          Max Starets

        Activity

          People

            mstarets Max Starets
            mstarets Max Starets
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: