RFR: 8300924: Method::invoke throws wrong exception type when passing wrong number of arguments to method with 4 or more parameters
Alan Bateman
alanb at openjdk.org
Tue Jan 24 19:03:03 UTC 2023
On Tue, 24 Jan 2023 18:19:22 GMT, Mandy Chung <mchung at openjdk.org> wrote:
> A simple fix in core reflection to check if the number of actual and formal parameters differ before invoking the method or the constructor regardless of whether it's a specialized case or not.
Changes looks okay, surprised it wasn't spotted in 18 or 19.
-------------
PR: https://git.openjdk.org/jdk/pull/12170
More information about the core-libs-dev
mailing list