RFR: 6983726: Reimplement MethodHandleProxies.asInterfaceInstance [v16]
Mandy Chung
mchung at openjdk.org
Fri May 26 21:26:05 UTC 2023
On Fri, 26 May 2023 21:05:39 GMT, Chen Liang <liach at openjdk.org> wrote:
> This approach also requires the Class loading checks since the interface is not unconditionally exported and fails security manager.
Are you referring to `ClassLoader::checkPackageAccess` change? As MHProxy implements `sun.invoke.WrapperInstance`, it needs to export `java.base/sun.invoke` to the dynamic module. The change to `ClassLoader::checkPackageAccess` doesn't make sense for this.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/13197#discussion_r1207376506
More information about the core-libs-dev
mailing list