fix: check respectBytecodeAccModifiers in MarkMethodsForInline (PR #2361)
Update MarkMethodsForInline.java
This commit is contained in:
@@ -150,7 +150,7 @@ public class MarkMethodsForInline extends AbstractVisitor {
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user