RFR: 8328261: public lookup fails with IllegalAccessException when used while module system is being initialized

Roger Riggs rriggs at openjdk.org
Mon Mar 18 17:54:26 UTC 2024


On Mon, 18 Mar 2024 17:40:26 GMT, Mandy Chung <mchung at openjdk.org> wrote:

> A simple fix.   This is caused by a bug in `VerifyAccess::isClassAccessible` that checks if a class is exported from `java.base` before the exports are fully setup.    It should check if the module system is fully initialized before checking the module exports instead.

LGTM

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

Marked as reviewed by rriggs (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/18356#pullrequestreview-1943799289


More information about the core-libs-dev mailing list