Important to ensure we generate it of the right version as it may end up containing code derived from a particular class that needs a be run with a certain level of verifier. In this case if inserting invokestatic targeting a interface method, we need to be using something later than a java 1.2 level class file.tags/V1_9_0_RC3
@@ -3059,6 +3059,7 @@ public class BcelShadow extends Shadow { | |||
LazyClassGen closureClass = new LazyClassGen(closureClassName, superClassName, getEnclosingClass().getFileName(), | |||
Modifier.PUBLIC, new String[] {}, getWorld()); | |||
closureClass.setMajorMinor(getEnclosingClass().getMajor(), getEnclosingClass().getMinor()); | |||
InstructionFactory fact = new InstructionFactory(closureClass.getConstantPool()); | |||
// constructor |