Endre St�lsvik wrote:
Why not? I don't think this is correct. See, if the class isn't referenced
anymore, by not having any referenced objects of that class (by any
reference), nor having the class object referenced, on the stack of any of
the JVM's created Threads, then the static fields of that class isn't
referenced either, and thus both will be gc'ed, and then the classloader
will be gc'ed..

More on this here: http://java.sun.com/docs/books/jls/second_edition/html/execution.doc.html#74294

IMHO there is no problem in classloaders being thrown away. BTW NetBeans module system successfully unloads (discards) disabled modules. Don't know why tomcat should not do the same ... (But you might have to deal with
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4646668 and maybe other subtle problems).


David


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to