tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36558] New: - IntrospectionUtils caches application classes
Date Thu, 08 Sep 2005 13:28:52 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36558>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36558

           Summary: IntrospectionUtils caches application classes
           Product: Tomcat 5
           Version: 5.5.9
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: magnus.alvestad@gmail.com


The class org.apache.tomcat.util.IntrospectionUtils caches the methods of 
classes used as parameters to the findMethods() method.  This cache has hard 
references, so when used against an application class (often an exception), the 
classloader of that application will never be unloaded.

Notice that changing the cache to a WeakHashMap would not help, as the class 
reference is also inside the Method object stored in the value field.

I think the same class (IntrospectionUtils) exists in the commons-modeler 
library, with the same problem.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message