Skip to content

Commit

Permalink
Merge pull request #391 from derklaro/fix-method-naming-syntax
Browse files Browse the repository at this point in the history
Only wrap the method name if the method doesn't come from the same declaring class
  • Loading branch information
chibash committed May 12, 2022
2 parents 9ba3937 + 1b8a927 commit 716b102
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/javassist/compiler/MemberCodeGen.java
Expand Up @@ -667,8 +667,9 @@ else if (AccessFlag.isPrivate(acc))
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;
Expand Down

0 comments on commit 716b102

Please sign in to comment.