[jboss-user] [Javassist user questions] - CtClass makeNestedClass does not take the the major version

k_o_ do-not-reply at jboss.com
Sat Sep 27 01:52:39 EDT 2008


Hi,

I have issues with the method

public CtClass makeNestedClass(String name, boolean isStatic)

I have an original file with Java major version 45 for Java ME on which CTClass instance this is invoked. Internal CtNewNestedClass(classname, this, false, null); is called than and finally public ClassFile(boolean isInterface, String classname, String superclass) sets the major version to 49. So Java ME complains with Bad Version Number error. Is is somehow possible to detect it automatically for these method which class version from the nesting CtClass should be used?

Karsten

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179163#4179163

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179163



More information about the jboss-user mailing list