commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 33931] - [beanutils] WeakHashMap incorrectly used in ContextClassLoaderLocal - may cause memory leak
Date Thu, 10 Mar 2005 09:21:21 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=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





------- Additional Comments From c.grigoroscuta@moodmedia.ro  2005-03-10 10:21 -------
(In reply to comment #1)
> Thanks for pointing this out.
> 
> I believe this problem is only struck when:
> (a) a parent classloader loads the BeanUtilsBean class.
> (b) a child classloader loads a custom BeanUtilsBean subclass, then calls
>     BeanUtilsBean.setInstance(customBeanUtilsBean).
> 
> I can't imagine why anyone would want to write a custom BeanUtilsBean...can you
> suggest why someone would do this?

You are right, there is little reason why somebody would do this. 
But the problem I signaled is not in BeanUtilsBeans, it's in
ContextClassLoaderLocal. 
ContextClassLoaderLocal is a public class, so there is the risk that somebody
would use it later in a different place, perhaps in a more harmful way.
I'm just trying to prevent that from happening ;)


-- 
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message