--- old/src/java.base/share/classes/java/lang/reflect/AccessibleObject.java 2019-07-19 09:05:46.000000000 -0700 +++ new/src/java.base/share/classes/java/lang/reflect/AccessibleObject.java 2019-07-19 09:05:45.000000000 -0700 @@ -30,6 +30,7 @@ import java.lang.ref.WeakReference; import java.security.AccessController; +import jdk.internal.access.SharedSecrets; import jdk.internal.misc.VM; import jdk.internal.module.IllegalAccessLogger; import jdk.internal.reflect.CallerSensitive; @@ -77,6 +78,10 @@ * @spec JPMS */ public class AccessibleObject implements AnnotatedElement { + static { + // AccessibleObject is initialized early in initPhase1 + SharedSecrets.setJavaLangReflectAccess(new java.lang.reflect.ReflectAccess()); + } static void checkPermission() { SecurityManager sm = System.getSecurityManager();