Преглед на файлове

Ensure version of generated class is correct

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
Andy Clement преди 6 години
родител
ревизия
7020be7dee
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1
    0
      weaver/src/org/aspectj/weaver/bcel/BcelShadow.java

+ 1
- 0
weaver/src/org/aspectj/weaver/bcel/BcelShadow.java Целия файл

@@ -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

Loading…
Отказ
Запис