Skip to content

Commit

Permalink
fix: check respectBytecodeAccModifiers in MarkMethodsForInline (PR #2361
Browse files Browse the repository at this point in the history
)

Update MarkMethodsForInline.java
  • Loading branch information
ewt45 authored Dec 9, 2024
1 parent 828cad3 commit 2fa7f84
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ private static boolean fixVisibilityOfInlineCode(MethodNode mth, InsnNode insn)
if (insnType == InsnType.INVOKE) {
InvokeNode invoke = (InvokeNode) insn;
MethodNode callMthNode = mth.root().resolveMethod(invoke.getCallMth());
if (callMthNode != null) {
if (callMthNode != null && !callMthNode.root().getArgs().isRespectBytecodeAccModifiers()) {
FixAccessModifiers.changeVisibility(callMthNode, newVisFlag);
}
return true;
Expand Down

0 comments on commit 2fa7f84

Please sign in to comment.