> 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.
Mandy Chung has updated the pull request incrementally with one additional commit since the last revision: fix accident argument ordering after edit ------------- Changes: - all: https://git.openjdk.java.net/jdk/pull/7185/files - new: https://git.openjdk.java.net/jdk/pull/7185/files/5d1f3477..30f1a05e Webrevs: - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=7185&range=02 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=7185&range=01-02 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.java.net/jdk/pull/7185.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/7185/head:pull/7185 PR: https://git.openjdk.java.net/jdk/pull/7185