Home
last modified time | relevance | path

Searched refs:VerifyAccess (Results 1 – 5 of 5) sorted by relevance

/libcore/luni/src/test/java/libcore/sun/invoke/util/
DVerifyAccessTest.java21 import sun.invoke.util.VerifyAccess;
34 assertFalse(VerifyAccess.isClassAccessible(Inner1.class, Inner2.class, 0)); in testIsClassAccessible()
37 assertTrue(VerifyAccess.isClassAccessible(Inner1.class, Inner2.class, in testIsClassAccessible()
39 assertTrue(VerifyAccess.isClassAccessible(Inner1.class, Sibling.class, in testIsClassAccessible()
43 assertTrue(VerifyAccess.isClassAccessible(String.class, Inner1.class, in testIsClassAccessible()
54 assertTrue(VerifyAccess.isSamePackageMember(Inner1.class, Inner2.class)); in testIsSamePackageMember()
55 assertTrue(VerifyAccess.isSamePackageMember(Inner1.class, VerifyAccessTest.class)); in testIsSamePackageMember()
57 assertFalse(VerifyAccess.isSamePackageMember(Sibling.class, Inner1.class)); in testIsSamePackageMember()
62 assertTrue(VerifyAccess.isSamePackage(Vector.class, List.class)); in testIsSamePackage()
64 assertTrue(VerifyAccess.isSamePackage(Vector.class, Locale.Builder.class)); in testIsSamePackage()
[all …]
/libcore/ojluni/src/main/java/sun/invoke/util/
DVerifyAccess.java36 public class VerifyAccess { class
38 private VerifyAccess() { } // cannot instantiate in VerifyAccess() method in VerifyAccess
/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodHandles.java28 import sun.invoke.util.VerifyAccess;
694 && !VerifyAccess.isSamePackage(this.lookupClass, requestedLookupClass)) { in in()
699 && !VerifyAccess.isSamePackageMember(this.lookupClass, requestedLookupClass)) { in in()
703 … && !VerifyAccess.isClassAccessible(requestedLookupClass, this.lookupClass, allowedModes)) { in in()
1248 return caller == null || VerifyAccess.isClassAccessible(type, caller, allowedModes); in isClassAccessible()
2121 if (VerifyAccess.isMemberAccessible(refc, defc, mods, lookupClass(), allowedModes)) in checkAccess()
2126 && VerifyAccess.isSamePackage(defc, lookupClass())) in checkAccess()
2139 classOK = (VerifyAccess.isClassAccessible(defc, lookupClass(), ALL_MODES) && in accessFailedMessage()
2141 VerifyAccess.isClassAccessible(refc, lookupClass(), ALL_MODES))); in accessFailedMessage()
/libcore/
Dopenjdk_java_files.bp1575 "ojluni/src/main/java/sun/invoke/util/VerifyAccess.java",
DEXPECTED_UPSTREAM1454 …ni/src/main/java/sun/invoke/util/VerifyAccess.java,jdk8u/jdk8u121-b13,jdk/src/share/classes/sun/in…