Searched refs:VerifyAccess (Results 1 – 4 of 4) sorted by relevance
/libcore/luni/src/test/java/libcore/sun/invoke/util/ |
D | VerifyAccessTest.java | 21 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/ |
D | VerifyAccess.java | 36 public class VerifyAccess { class 38 private VerifyAccess() { } // cannot instantiate in VerifyAccess() method in VerifyAccess
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | MethodHandles.java | 35 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/ |
D | openjdk_java_files.mk | 1366 ojluni/src/main/java/sun/invoke/util/VerifyAccess.java \
|