On Wed, 20 Jan 2021 18:29:00 GMT, Johannes Kuhn 
<github.com+652983+dasbr...@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 <i...@j-kuhn.de>
Committer: Mandy Chung <mch...@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

Reply via email to