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 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user