For another request, I'll change ClassPool.get() to
accept [L...;
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877042#3877042
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877042
--
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