-
CSR
-
Resolution: Approved
-
P4
-
None
-
behavioral
-
minimal
-
Java API
-
Implementation
Summary
Calling a default method on an instance produced by MethodHandleProxies.asInterface throws a " java.lang.InternalError: bad proxy method" which violates the contract of the default methods
Problem
MethodHandleProxies.asInterfaceInstance does not support default methods and does not mention such methods with regards to selection of the uniquely named method.
Solution
The change supports MethodHandleProxies.asInterfaceInstance to invoke default method thereby avoiding recursive invocation back to the proxy class.
Specification
No spec change, only behavioural changes are ported.
- csr of
-
JDK-8234669 MethodHandleProxies.asInterfaceInstance does not support default methods
-
- Resolved
-