[jboss-user] [Javassist user questions] - Re: error reloading a class
do-not-reply at jboss.com
Mon Feb 11 02:49:05 EST 2008
Just to make it clearer:
* the interface I'm going to apply will remain the same during the whole program, and so I guess it can be loaded by a parent (even root) loader;
* the class to which the interface will be applied can change during the program execution, and so should be loaded by a custom classloader.
The actual hierarchy of the loaders is:
root (loads the interface to add)
| custom_add (loads the class with the interface)
custom_remove (loads the class without the added interface)
So my question is: why the addition can work and the removal not? I mean, after the class has been reloaded by custom_add, I can cast the class to the added interface, while after reloading it with custom_remove I _can still_ cast it to the interface.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128262#4128262
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128262
More information about the jboss-user