If you have:
public class MyClass
{
public static Class myClass = MyClass.class; // or the same thing indirectly
}
The GC should detect this is no longer referenceable
when you lose all references to the ClassLoader.
The only thing that would stop it getting gced would be if the advisor
is held elsewhere, e.g. inside the AspectManager.
More likely, something else is holding a reference to
the class,
an instance of the class,
a subsidary object that holds a reference to the class (method, field, etc)
something holding a reference to another static constant of the class
that is not getting undeployed/dereferenced.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3866547#3866547
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3866547
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development