diff options
Diffstat (limited to 'src/main/javassist/compiler/MemberCodeGen.java')
-rw-r--r-- | src/main/javassist/compiler/MemberCodeGen.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/javassist/compiler/MemberCodeGen.java b/src/main/javassist/compiler/MemberCodeGen.java index e8e9912b..337c5860 100644 --- a/src/main/javassist/compiler/MemberCodeGen.java +++ b/src/main/javassist/compiler/MemberCodeGen.java @@ -667,8 +667,9 @@ public class MemberCodeGen extends CodeGen { origDesc); acc = AccessFlag.setPackage(acc) | AccessFlag.STATIC; - mname = getAccessiblePrivate(mname, origDesc, desc, - minfo, declClass); + if (!isFromSameDeclaringClass(declClass, thisClass)) + mname = getAccessiblePrivate(mname, origDesc, desc, + minfo, declClass); } boolean popTarget = false; |