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=31286>. 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=31286 Memory leaks in JBoss due to LogFactory cache ------- Additional Comments From [EMAIL PROTECTED] 2004-11-09 07:01 ------- I wrote something a couple weeks back that sounds like it might do something similar to what you were thinking about, but using reflection instead of bytecode manipulation. Basically, it detects if 1.2 is available and if so LogFactory uses a special Hashtable subclass that passes (almost) all calls through to a WeakHashMap. Almost, because to allow use in 1.1 JVMs the methods that include Collections framework classes in their signatures are not overridden. So, as you noted, this approach may cause issues with subclasses. I hesistated to submit this as it seems a bit of a hack, but, hey, why not Attached is a diff to LogFactory and a new class, WeakHashtable. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]