On Fri, 26 May 2023 21:05:39 GMT, Chen Liang <li...@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