8259922 MethodHandles.collectArguments does not throw IAE if pos is outside the arity range #2171
Add explicit range check to
This is a behavioral change, from throwing an unspecified exception to throwing an IllegalArgumentException, as specified.
Feel free to suggest a better place for the tests.
@DasBrain The following labels will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command.
@DasBrain This change now passes all automated pre-integration checks.
After integration, the commit message for the final commit will be:
At the time when this comment was updated there had been 39 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.
As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@mlchung) but any other Committer may sponsor as well.
Your commit was automatically rebased without conflicts.
Pushed as commit bf5e801.