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

           Summary: util.http.FastHttpDateFormat odd synchronisation
           Product: Tomcat 7
           Version: trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: s...@apache.org


tomcat.util.http.FastHttpDateFormat.format
tomcat.util.http.FastHttpDateFormat.formats

are both protected static final SimpleDateFormats

Access within the class is synch., but there is no guarantee that subclasses
will use the same synch. object

The fields should be made private, or the synch requirements documented.

The class also synchronises on a ConcurrentHashMap which looks very odd.

-- 
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: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to