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=33931>. 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=33931 Summary: WeakHashMap incorrectly used in ContextClassLoaderLocal - may cause memory leak Product: Commons Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P3 Component: Bean Utilities AssignedTo: commons-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] Signaled in version 1.7 of beanutils: the class ContextClassLoaderLocal incorrectly uses a WeakHashMap (valueByClassLoader) - used by BeanUtilsBean. In order for a WeakHashMap to work correctly, the values must not hold references to keys, otherwise it behaves like a normal map. But in ContextClassLoaderLocal, the key is the context class loader of the current thread, while the value is any object (for example a BeansUtilsBean, when used by BeanUtilsBean). If the value class is loaded by the context class loader, it violates the above mentioned rule, and this may cause severe memory leaks when used in web applications that are stopped/started multiple times, by holding strong references to class loaders that would otherwise be garbage collected. -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]