0 Replies Latest reply on Sep 27, 2008 1:52 AM by Karsten Ohme

    CtClass makeNestedClass does not take the the major version

    Karsten Ohme Newbie


      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?