Skip to content

Commit

Permalink
Fix shift consideration.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Feb 8, 2025
1 parent f426fa2 commit 71c3dce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2759,7 +2759,7 @@ public Resolution resolve(Target target,
}
stackManipulations.add(assignment);
}
boolean shift = target.isStaticDispatch();
boolean shift = !target.isStaticDispatch();
for (int index = 0; index < methodDescription.getParameters().size(); index++) {
int substitution = substitutions.containsKey(index + (shift ? 1 : 0)) ? substitutions.get(index + (shift ? 1 : 0)) : index + (shift ? 1 : 0);
if (substitution >= parameters.size()) {
Expand Down

0 comments on commit 71c3dce

Please sign in to comment.