From 2fa7f84251ad0f836b5afeb24b5eb42b192d4b27 Mon Sep 17 00:00:00 2001 From: ewt45 <79033456+ewt45@users.noreply.github.com> Date: Tue, 10 Dec 2024 00:17:22 +0800 Subject: [PATCH] fix: check respectBytecodeAccModifiers in MarkMethodsForInline (PR #2361) Update MarkMethodsForInline.java --- .../main/java/jadx/core/dex/visitors/MarkMethodsForInline.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jadx-core/src/main/java/jadx/core/dex/visitors/MarkMethodsForInline.java b/jadx-core/src/main/java/jadx/core/dex/visitors/MarkMethodsForInline.java index 3486b0fff0d..0ac9368d46e 100644 --- a/jadx-core/src/main/java/jadx/core/dex/visitors/MarkMethodsForInline.java +++ b/jadx-core/src/main/java/jadx/core/dex/visitors/MarkMethodsForInline.java @@ -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;