Skip to content

Commit

Permalink
fix removeJSRInstructions check major version.
Browse files Browse the repository at this point in the history
  • Loading branch information
hengyunabc committed Sep 12, 2024
1 parent 4928586 commit c8c0430
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public static MethodNode removeJSRInstructions(MethodNode subjectMethod) {

public static ClassNode removeJSRInstructions(ClassNode classNode) {
// 据jvm的规范,在 51 及之后版本的字节码里,不允许出现 jsr
if (classNode.version >= 51) {
if (getMajorVersion(classNode.version) >= 51) {
return classNode;
}
ClassNode result = new ClassNode(Opcodes.ASM9);
Expand Down

0 comments on commit c8c0430

Please sign in to comment.