Integrated: 8259922 MethodHandles.collectArguments does not throw IAE if pos is outside the arity range
Johannes Kuhn
github.com+652983+dasbrain at openjdk.java.net
Fri Jan 22 17:21:43 UTC 2021
On Wed, 20 Jan 2021 18:29:00 GMT, Johannes Kuhn <github.com+652983+DasBrain at openjdk.org> wrote:
> 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.
This pull request has now been integrated.
Changeset: bf5e8015
Author: Johannes Kuhn <info at j-kuhn.de>
Committer: Mandy Chung <mchung at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/bf5e8015
Stats: 86 lines in 2 files changed: 86 ins; 0 del; 0 mod
8259922: MethodHandles.collectArguments does not throw IAE if pos is outside the arity range
Reviewed-by: mchung
-------------
PR: https://git.openjdk.java.net/jdk/pull/2171
More information about the core-libs-dev
mailing list