Skip to content

Commit

Permalink
Only wrap the method name if the method doesn't come from the same de…
Browse files Browse the repository at this point in the history
…cl class
  • Loading branch information
derklaro committed Sep 7, 2021
1 parent 047f7c7 commit 1b8a927
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 1b8a927

Please sign in to comment.