axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glyn Normington" <glyn_norming...@uk.ibm.com>
Subject Re: DO NOT REPLY [Bug 10246] New: - dynamic class
Date Wed, 26 Jun 2002 14:05:35 GMT

I added the following comment but, ho hum, forgot to copy axis-dev.

Glyn
------- Additional Comments From Glyn Normington 2002-06-26 14:00 -------
Note that class unloading has some gotcha's. You can't reliably reload a
class
into the same classloader. If you use multiple classloaders which are
siblings
of each other in the classloader hierarchy, then the classes loaded in each

classloader can't use the classes loaded in the other classloaders.
Effectively, this means that you have to reload a whole classloader worth
of
classes to pick up a change to a single class. Also, if you're not careful,
you
might find it hard to get the previous classloader garbage collected as
there
will probably be many references to it from active objects. This could
consume
excessive memory.

More background at:
http://java.sun.com/docs/books/jls/unloading-rationale.html.

Note also that class unloading is apparently still rather implementation
dependent.


Mime
View raw message