[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] [aj5] Javaagent reload ??
|
#: Rafal Krzewski changed the world a bit at a time by saying on 10/5/2005 12:34 PM :#
Alexandru Popescu wrote:
I don't think this is possible. In order to make the JVM unload the
classes, you should be able to assure that those are not referenced
anymore and their parent classloader can be destroyed.
hmmm, it looks like a very interesting question :-).
if you take a look at
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/instrument/Instrumentation.html
you'll notice redefineClasses(ClassDefinition[]) method that looks
promising. Unfortunately as of Sun JDK 1.5.0 it cannot add, remove or
change signature of methods nor modify inheritance, so it is not
sufficient for the kind of class modifications AJ performs. Maybe in
future releases...
R.
afaik the instrumentation works only when classes are loaded for the first time.
./alex
--
.w( the_mindstorm )p.
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users