https://issues.apache.org/bugzilla/show_bug.cgi?id=50265

           Summary: FormatDateSupport.dateFormatCache lazy init is not
                    safe
           Product: Taglibs
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Standard Taglib
        AssignedTo: [email protected]
        ReportedBy: [email protected]


FormatDateSupport.dateFormatCache is private and static.

It is initialised in the createFormatter method, however access is not
synchronised, so the field might not be published correctly.

This can result in different threads getting different instances.
If this is acceptable, then this should be documented in the code.
Otherwise consider using IODH idiom.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to