diff --git a/src/main/java/gate/creole/Plugin.java b/src/main/java/gate/creole/Plugin.java index e795639..af68184 100644 --- a/src/main/java/gate/creole/Plugin.java +++ b/src/main/java/gate/creole/Plugin.java @@ -1082,7 +1082,7 @@ public AnnotationVisitor visitAnnotation(String desc, boolean visible) { // we've found a CreoleResource annotation on this class if(desc.equals(CREOLE_RESOURCE_DESC)) { foundCreoleResource = true; - return new AnnotationVisitor(Opcodes.ASM5) { + return new AnnotationVisitor(Opcodes.ASM9) { @Override public void visit(String name, Object value) { if(name.equals("name") && resInfo.getResourceName() == null) { diff --git a/src/main/java/gate/util/asm/commons/EmptyVisitor.java b/src/main/java/gate/util/asm/commons/EmptyVisitor.java index 850053b..cf5ad6c 100644 --- a/src/main/java/gate/util/asm/commons/EmptyVisitor.java +++ b/src/main/java/gate/util/asm/commons/EmptyVisitor.java @@ -10,7 +10,7 @@ public class EmptyVisitor extends ClassVisitor { - AnnotationVisitor av = new AnnotationVisitor(Opcodes.ASM5) { + AnnotationVisitor av = new AnnotationVisitor(Opcodes.ASM9) { @Override public AnnotationVisitor visitAnnotation(String name, String desc) { @@ -24,7 +24,7 @@ public AnnotationVisitor visitArray(String name) { }; public EmptyVisitor() { - super(Opcodes.ASM5); + super(Opcodes.ASM9); } @Override @@ -41,7 +41,7 @@ public AnnotationVisitor visitTypeAnnotation(int typeRef, @Override public FieldVisitor visitField(int access, String name, String desc, String signature, Object value) { - return new FieldVisitor(Opcodes.ASM5) { + return new FieldVisitor(Opcodes.ASM9) { @Override public AnnotationVisitor visitAnnotation(String desc, @@ -60,7 +60,7 @@ public AnnotationVisitor visitTypeAnnotation(int typeRef, @Override public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) { - return new MethodVisitor(Opcodes.ASM5) { + return new MethodVisitor(Opcodes.ASM9) { @Override public AnnotationVisitor visitAnnotationDefault() {