8259922 MethodHandles.collectArguments does not throw IAE if pos is outside the arity range#2171
8259922 MethodHandles.collectArguments does not throw IAE if pos is outside the arity range#2171DasBrain wants to merge 5 commits intoopenjdk:masterfrom
Conversation
|
👋 Welcome back DasBrain! A progress list of the required criteria for merging this PR into |
|
@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. |
Webrevs
|
mlchung
left a comment
There was a problem hiding this comment.
Thanks for fixing this. I can sponsor this for you.
src/java.base/share/classes/java/lang/invoke/MethodHandles.java
Outdated
Show resolved
Hide resolved
test/jdk/java/lang/invoke/8259922/TestMethodHandlesCollectArgs.java
Outdated
Show resolved
Hide resolved
test/jdk/java/lang/invoke/8259922/TestMethodHandlesCollectArgs.java
Outdated
Show resolved
Hide resolved
mlchung
left a comment
There was a problem hiding this comment.
Looks good. What tests have you ran?
|
On the latest commit, only my own test. Currently a full test tier1 run on my machine and github actions is in progress. |
|
@DasBrain This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. 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. ➡️ To flag this PR as ready for integration with the above commit message, type |
|
Tests did run successfully on my machine (win 64) and github actions. |
|
/integrate |
|
/sponsor |
|
@mlchung @DasBrain Since your change was applied there have been 52 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit bf5e801. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Add explicit range check to
MethodHandles.collectArgumentsCheck.Added test case that exercises all cases.
This is a behavioral change, from throwing an unspecified exception to throwing an IllegalArgumentException, as specified.
No spec change needed, as the IllegalArgumentException is already specified to be thrown in those cases.
Feel free to suggest a better place for the tests.
Progress
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/jdk pull/2171/head:pull/2171$ git checkout pull/2171