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

           Summary: org.apache.catalina.core.ContainerBase.getLogger() not
                    thread-safe?
           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


org.apache.catalina.core.ContainerBase.getLogger() is not synchronised, yet all
the other methods which access org.apache.catalina.core.ContainerBase.logger
are synch. This seems wrong.

org.apache.catalina.core.ContainerBase.logger should probably be private to
prevent unsynch. access by subclasses.

Similar considerations apply to logName and logName()

The Javadoc for getLogger() states that it can return null - that does not
appear to be possible. [Not sure if the method ever returns the parent logger
either.]

-- 
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