]> source.dussan.org Git - javassist.git/commitdiff
cancels PR#391, which does not pass all the tests
authorchibash <chiba@javassist.org>
Thu, 12 May 2022 17:32:49 +0000 (02:32 +0900)
committerchibash <chiba@javassist.org>
Thu, 12 May 2022 17:32:49 +0000 (02:32 +0900)
src/main/javassist/compiler/MemberCodeGen.java

index c97af65b887840afab6cdfccdea7adc9160ca7f9..e8e9912b269371acd5b7c121dec4433d0ccaeb89 100644 (file)
@@ -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;