Skip to content

Commit 6143994

Browse files
author
‘niuerzhuang’
committed
fix: jsr/ret exception.
1 parent 37425fc commit 6143994

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dongtai-core/src/main/java/io/dongtai/iast/core/bytecode/enhance/plugin/core/DispatchClassPlugin.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,18 @@ public MethodVisitor visitMethod(final int access, final String name, final Stri
6464
final String signature, final String[] exceptions) {
6565
MethodVisitor mv = super.visitMethod(access, name, descriptor, signature, exceptions);
6666
if (Modifier.isInterface(access) || Modifier.isAbstract(access) || "<clinit>".equals(name)) {
67+
if (this.classVersion <= Opcodes.V1_6) {
68+
mv = new JSRInlinerAdapter(mv, access, name, descriptor, signature, exceptions);
69+
}
6770
return mv;
6871
}
6972

7073
if (this.policy.isBlacklistHooks(this.context.getClassName())
7174
&& !this.policy.isIgnoreBlacklistHooks(this.context.getClassName())
7275
&& !this.policy.isIgnoreInternalHooks(this.context.getClassName())) {
76+
if (this.classVersion <= Opcodes.V1_6) {
77+
mv = new JSRInlinerAdapter(mv, access, name, descriptor, signature, exceptions);
78+
}
7379
return mv;
7480
}
7581

0 commit comments

Comments
 (0)