aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorderklaro <pasqual.koschmieder@gmail.com>2021-09-07 21:44:24 +0200
committerderklaro <pasqual.koschmieder@gmail.com>2021-09-07 21:44:24 +0200
commit1b8a927963e643eb5f792765819cb674726e9c38 (patch)
tree20358a3ad1786f8adf16a4c648281c7159fa19fc /src
parent047f7c71be30d1fce5773c8e9c014052acac14df (diff)
downloadjavassist-1b8a927963e643eb5f792765819cb674726e9c38.tar.gz
javassist-1b8a927963e643eb5f792765819cb674726e9c38.zip
Only wrap the method name if the method doesn't come from the same decl class
Diffstat (limited to 'src')
-rw-r--r--src/main/javassist/compiler/MemberCodeGen.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/javassist/compiler/MemberCodeGen.java b/src/main/javassist/compiler/MemberCodeGen.java
index 48acd137..67a98a5c 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;