This content has been marked as final.
Show 1 reply
-
1. Re: ClassCastException
chiba Aug 12, 2003 4:32 AM (in response to popmace)Using the reflection API is an easier way to call a
method in the class you dynamically define. This is
not the limitation by Javassist but the Java
language.
Otherwise, you should carefully control your class
loader that will load the class A so that it would
delegate loading the interface I to the parent class
loader.
Using a class loader is really difficult. It might be
better to carefully read Section 4 of the Javassist
tutorial before writing a program.