[jboss-user] [Javassist user questions] - attempted duplicate class definition for name:
Michenux
do-not-reply at jboss.com
Mon Mar 30 10:26:55 EDT 2009
Hi,
I would like to know it is possible to modify
a class that has been already loaded.
My test case :
MyClass myClass = new MyClass();
| ClassPool pool = ClassPool.getDefault();
| CtClass cc = pool.get("MyClass");
| //make some changes
| cc.toClass();
It faults with :
Caused by: java.lang.LinkageError: loader (instance of sun/misc/Launcher$AppClassLoader): attempted duplicate class definition for name: "MyClass"
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4222019#4222019
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4222019
More information about the jboss-user
mailing list