--- old/src/java.base/share/classes/sun/invoke/util/VerifyAccess.java 2018-02-11 21:06:09.155060581 -0500 +++ new/src/java.base/share/classes/sun/invoke/util/VerifyAccess.java 2018-02-11 21:06:07.678975605 -0500 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2008, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -44,7 +44,6 @@ private static final int PACKAGE_ALLOWED = java.lang.invoke.MethodHandles.Lookup.PACKAGE; private static final int PROTECTED_OR_PACKAGE_ALLOWED = (PACKAGE_ALLOWED|PROTECTED); private static final int ALL_ACCESS_MODES = (PUBLIC|PRIVATE|PROTECTED|PACKAGE_ONLY); - private static final boolean ALLOW_NESTMATE_ACCESS = false; /** * Evaluate the JVM linkage rules for access to the given method @@ -62,23 +61,29 @@ * the defining class should be passed for both arguments ({@code defc == refc}). *

JVM Specification, 5.4.4 "Access Control"

* A field or method R is accessible to a class or interface D if - * and only if any of the following conditions is true: