Skip to content

Commit b19e5f9

Browse files
committed
Make ClassVisitors support ASM API v7 in order to support JAVA 11
1 parent 9939f28 commit b19e5f9

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

jooby/src/main/java/org/jooby/internal/RouteMetadata.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ private static String classfile(final Class<?> owner) {
289289
}
290290

291291
private static ClassVisitor visitor(final Map<String, Object> md) {
292-
return new ClassVisitor(Opcodes.ASM5) {
292+
return new ClassVisitor(Opcodes.ASM7) {
293293

294294
@Override
295295
public MethodVisitor visitMethod(final int access, final String name,
@@ -308,7 +308,7 @@ public MethodVisitor visitMethod(final int access, final String name,
308308
int minIdx = ((access & Opcodes.ACC_STATIC) > 0) ? 0 : 1;
309309
int maxIdx = Arrays.stream(args).mapToInt(Type::getSize).sum();
310310

311-
return new MethodVisitor(Opcodes.ASM5) {
311+
return new MethodVisitor(Opcodes.ASM7) {
312312

313313
private int i = 0;
314314

modules/jooby-apitool/src/main/java/org/jooby/internal/apitool/TypeDescriptorParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ class TypeDescriptorParser extends SignatureVisitor {
222222
private int index;
223223

224224
private TypeDescriptorParser(final ClassLoader loader) {
225-
super(Opcodes.ASM5);
225+
super(Opcodes.ASM7);
226226
this.loader = loader;
227227
}
228228

0 commit comments

Comments
 (0)