Integrated: 8280377: MethodHandleProxies does not correctly invoke default methods with varags
Mandy Chung
mchung at openjdk.java.net
Wed Jan 26 01:28:36 UTC 2022
On Fri, 21 Jan 2022 22:49:38 GMT, Mandy Chung <mchung at openjdk.org> wrote:
> The MethodHandle of a default method should be made as a fixed arity method handle because it is invoked via Proxy's invocation handle with a non-vararg array of arguments. On the other hand, the `InvocationHandle::invokeDefault` method was added in Java 16 to invoke a default method of a proxy instance. This patch simply converts the implementation to call `InvocationHandle::invokeDefault` instead.
This pull request has now been integrated.
Changeset: a183bfb4
Author: Mandy Chung <mchung at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/a183bfb436a7dd998e602c2d16486e88c390fca1
Stats: 358 lines in 12 files changed: 292 ins; 63 del; 3 mod
8280377: MethodHandleProxies does not correctly invoke default methods with varags
Reviewed-by: alanb
-------------
PR: https://git.openjdk.java.net/jdk/pull/7185
More information about the core-libs-dev
mailing list