Home
last modified time | relevance | path

Searched refs:VerifyAccess (Results 1 – 4 of 4) 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.java35 import sun.invoke.util.VerifyAccess;
639 && !VerifyAccess.isSamePackage(this.lookupClass, requestedLookupClass)) { in in()
644 && !VerifyAccess.isSamePackageMember(this.lookupClass, requestedLookupClass)) { in in()
648 … && !VerifyAccess.isClassAccessible(requestedLookupClass, this.lookupClass, allowedModes)) { in in()
1616 if (VerifyAccess.isMemberAccessible(refc, defc, mods, lookupClass(), allowedModes)) in checkAccess()
1621 && VerifyAccess.isSamePackage(defc, lookupClass())) in checkAccess()
1634 classOK = (VerifyAccess.isClassAccessible(defc, lookupClass(), ALL_MODES) && in accessFailedMessage()
1636 VerifyAccess.isClassAccessible(refc, lookupClass(), ALL_MODES))); in accessFailedMessage()
/libcore/
Dopenjdk_java_files.mk1366 ojluni/src/main/java/sun/invoke/util/VerifyAccess.java \