RFR: 6983726: remove Proxy from MethodHandleProxies.asInterfaceInstance SAM conversion [v9]

Johannes Kuhn jkuhn at openjdk.org
Fri Apr 7 11:44:49 UTC 2023


On Fri, 7 Apr 2023 11:20:12 GMT, ExE Boss <duke at openjdk.org> wrote:

> that can’t refer to hidden classes

No, that is exactly the **one and only thing** that can refer to the hidden class:

> * On any attempt to resolve the entry in the run-time constant pool indicated by `this_class`, the symbolic reference is considered to be resolved to `C` and resolution always succeeds immediately.

[(Souce)](https://docs.oracle.com/en/java/javase/20/docs/api/java.base/java/lang/invoke/MethodHandles.Lookup.html#defineHiddenClass%28byte%5B%5D,boolean,java.lang.invoke.MethodHandles.Lookup.ClassOption...%29)

As the passed class refers to `this_class`, that use is fine.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/13197#discussion_r1160646408


More information about the core-libs-dev mailing list