aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorShigeru Chiba <chibash@users.noreply.github.com>2022-05-13 02:24:13 +0900
committerGitHub <noreply@github.com>2022-05-13 02:24:13 +0900
commit716b102e3a040f7023b4b8ddd4b9ce7afacf9ac2 (patch)
tree26c250f5e32568bba4c289272306afab0c62681f /src
parent9ba39378eb703af25d811722b10206e55b5bbdad (diff)
parent1b8a927963e643eb5f792765819cb674726e9c38 (diff)
downloadjavassist-716b102e3a040f7023b4b8ddd4b9ce7afacf9ac2.tar.gz
javassist-716b102e3a040f7023b4b8ddd4b9ce7afacf9ac2.zip
Merge pull request #391 from derklaro/fix-method-naming-syntax
Only wrap the method name if the method doesn't come from the same declaring 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 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;