From e890cfeee37e90b0d2aebed2a656623a852d0f7b Mon Sep 17 00:00:00 2001 From: chibash Date: Fri, 13 May 2022 02:32:49 +0900 Subject: [PATCH] cancels PR#391, which does not pass all the tests --- src/main/javassist/compiler/MemberCodeGen.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/javassist/compiler/MemberCodeGen.java b/src/main/javassist/compiler/MemberCodeGen.java index c97af65b..e8e9912b 100644 --- a/src/main/javassist/compiler/MemberCodeGen.java +++ b/src/main/javassist/compiler/MemberCodeGen.java @@ -667,9 +667,8 @@ public class MemberCodeGen extends CodeGen { origDesc); acc = AccessFlag.setPackage(acc) | AccessFlag.STATIC; - if (!isFromSameDeclaringClass(declClass, thisClass)) - mname = getAccessiblePrivate(mname, origDesc, desc, - minfo, declClass); + mname = getAccessiblePrivate(mname, origDesc, desc, + minfo, declClass); } boolean popTarget = false; -- 2.39.5