Skip to content

Commit 71c3dce

Browse files
committed
Fix shift consideration.
1 parent f426fa2 commit 71c3dce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

byte-buddy-dep/src/main/java/net/bytebuddy/asm/MemberSubstitution.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2759,7 +2759,7 @@ public Resolution resolve(Target target,
27592759
}
27602760
stackManipulations.add(assignment);
27612761
}
2762-
boolean shift = target.isStaticDispatch();
2762+
boolean shift = !target.isStaticDispatch();
27632763
for (int index = 0; index < methodDescription.getParameters().size(); index++) {
27642764
int substitution = substitutions.containsKey(index + (shift ? 1 : 0)) ? substitutions.get(index + (shift ? 1 : 0)) : index + (shift ? 1 : 0);
27652765
if (substitution >= parameters.size()) {

0 commit comments

Comments
 (0)