Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add missing varparam to super call when overriding
This commits fixes a regression introduced in 240c51e.
We use the dedicated JMethod#varParam() API to add the variable length
parameter, however we only added normal parameters to the super
call. Now we also add the dedicated varparam to the super call as well.
  • Loading branch information
WonderCsabo committed Feb 25, 2016
commit d5a1874b4d38a48d8f7e2458f18fe7f50151be59
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,10 @@ public JInvocation getSuperCall(GeneratedClassHolder holder, JMethod superMethod
superCall.arg(param);
}

if (superMethod.hasVarArgs()) {
superCall.arg(superMethod.varParam());
}

return superCall;
}

Expand Down