Skip to content

Commit cdcdd58

Browse files
committed
try to fix: JSR/RET are not supported with computeFrames option
1 parent d34a400 commit cdcdd58

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/java/nginx/clojure/wave/RemoveMonitorVisitor.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import nginx.clojure.asm.ClassVisitor;
88
import nginx.clojure.asm.MethodVisitor;
99
import nginx.clojure.asm.Opcodes;
10+
import nginx.clojure.asm.commons.JSRInlinerAdapter;
1011

1112
/**
1213
* @author Zhang,Yuexiang (xfeep)
@@ -30,7 +31,9 @@ public MethodVisitor visitMethod(int access, String name, String descriptor, Str
3031
if ((access & Opcodes.ACC_SYNCHRONIZED) == Opcodes.ACC_SYNCHRONIZED) {
3132
access &= ~Opcodes.ACC_SYNCHRONIZED;
3233
}
33-
return new RemoveMonitorMethodVisitor(Opcodes.ASM9, super.visitMethod(access, name, descriptor, signature, exceptions));
34+
RemoveMonitorMethodVisitor rm = new RemoveMonitorMethodVisitor(Opcodes.ASM9, super.visitMethod(access, name, descriptor, signature, exceptions));
35+
JSRInlinerAdapter jia = new JSRInlinerAdapter(rm, access, name, descriptor, signature, exceptions);
36+
return jia;
3437
}
3538

3639
}

0 commit comments

Comments
 (0)