[JBoss-user] [Javassist user questions] - Re: Can we avoid

2005-09-06 Thread gpothier
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 ---

[JBoss-user] [Javassist user questions] - Can we avoid "cannot edit NEW followed by no DUP"?

2005-09-05 Thread gpothier
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

[JBoss-user] [Javassist user questions] - Re: Javassist and Java5's enumerations

2005-04-24 Thread gpothier
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

[JBoss-user] [Javassist user questions] - Re: Javassist and Java5's enumerations

2005-04-21 Thread gpothier
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

[JBoss-user] [Javassist user questions] - Javassist and Java5's enumerations

2005-04-21 Thread gpothier
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