Thanks, it works now! I am indeed using Eclipse to compile classes.
g
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3893269#3893269
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3893269
---
Hi,
If I try to replace an expression like "new MyClass()" (without assignment), I
get that error:
javassist.CannotCompileException: sorry, cannot edit NEW followed by no DUP
If I add an assignment like "MyClass dummy = new MyClass()", then there is no
problem.
Is there a fundamental issue in
Ok, I found the problem. It is not specific to enumerations: Javassist doesn't
properly handle array classes.
For example, this code poses problems:
String[] theStrings = {"A", "B"};
theStrings = theStrings.clone();
The problem is that in the class file, the method call is represented like that
Sorry, the actual exception is a javassist.NotFoundException. Java's
NoClassDefFound doesn't surface its root cause.
Here is the stack trace:
javassist.NotFoundException:
[Lreflex.lib.logging.core.api.collector.BehaviourType;
at javassist.ClassPool.get(ClassPool.java:301)
at javas
Hi, I have a problem with enumerations classes and Javassist: I'm getting a
java.lang.NoClassDefFoundError when the VM tries to load an enumeration. Is
Javassist supposed to support enumerations?
The enumerations that cause problems are not created by Javassist but already
exist. There is also s