Home
last modified time | relevance | path

Searched refs:defc (Results 1 – 6 of 6) sorted by relevance

/libcore/ojluni/src/main/java/sun/invoke/util/
DVerifyAccess.java86 Class<?> defc, // actual def class in isMemberAccessible() argument
98 if (defc == lookupClass && in isMemberAccessible()
105 assert !defc.isInterface(); // protected members aren't allowed in interfaces in isMemberAccessible()
107 isSamePackage(defc, lookupClass)) in isMemberAccessible()
118 isSubClass(lookupClass, defc)) in isMemberAccessible()
122 assert !defc.isInterface(); // package-private members aren't allowed in interfaces in isMemberAccessible()
124 isSamePackage(defc, lookupClass)); in isMemberAccessible()
129 isSamePackageMember(defc, lookupClass)); in isMemberAccessible()
141 static boolean isSubClass(Class<?> lookupClass, Class<?> defc) { in isSubClass() argument
142 return defc.isAssignableFrom(lookupClass) && in isSubClass()
/libcore/ojluni/src/test/java/lang/invoke/
DMethodHandlesGeneralTest.java102 …void testFindStatic(Class<?> defc, Class<?> ret, String name, Class<?>... params) throws Throwable… in testFindStatic() argument
103 for (Object[] ac : accessCases(defc, name)) { in testFindStatic()
104 testFindStatic((Boolean)ac[0], (Lookup)ac[1], defc, ret, name, params); in testFindStatic() local
108 …void testFindStatic(Lookup lookup, Class<?> defc, Class<?> ret, String name, Class<?>... params) t… in testFindStatic() argument
109 testFindStatic(true, lookup, defc, ret, name, params); in testFindStatic()
112 …void testFindStatic(boolean positive, Lookup lookup, Class<?> defc, Class<?> ret, String name, Cla… in testFindStatic() argument
119 if (verbosity >= 4) System.out.println("lookup via "+lookup+" of "+defc+" "+name+type); in testFindStatic()
120 target = maybeMoveIn(lookup, defc).findStatic(defc, methodName, type); in testFindStatic()
131 … System.out.println("findStatic "+lookup+": "+defc.getName()+"."+name+"/"+type+" => "+target in testFindStatic()
196 …void testFindVirtual(Class<?> defc, Class<?> ret, String name, Class<?>... params) throws Throwabl… in testFindVirtual() argument
[all …]
DMethodHandlesTest.java492 static Object[][] accessCases(Class<?> defc, String name, boolean isSpecial) { in accessCases() argument
496 } else if (name.contains("pkg_") || !Modifier.isPublic(defc.getModifiers())) { in accessCases()
502 boolean pubc = Modifier.isPublic(defc.getModifiers()); in accessCases()
508 if (defc != Example.class && cases[cases.length-1][1] == EXAMPLE) in accessCases()
513 static Object[][] accessCases(Class<?> defc, String name) {
514 return accessCases(defc, name, false);
517 static Lookup maybeMoveIn(Lookup lookup, Class<?> defc) {
521 return lookup.in(defc);
/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodHandleInfo.java280 public static String toString(int kind, Class<?> defc, String name, MethodType type) { in toString() argument
282 … return String.format("%s %s.%s:%s", referenceKindToString(kind), defc.getName(), name, type); in toString()
DMethodHandles.java2088 void checkAccess(Class<?> refc, Class<?> defc, int mods, String methName) in checkAccess() argument
2093 defc == Object.class && in checkAccess()
2121 if (VerifyAccess.isMemberAccessible(refc, defc, mods, lookupClass(), allowedModes)) in checkAccess()
2126 && VerifyAccess.isSamePackage(defc, lookupClass())) in checkAccess()
2130 throwMakeAccessException(accessFailedMessage(refc, defc, mods), this); in checkAccess()
2133 String accessFailedMessage(Class<?> refc, Class<?> defc, int mods) { in accessFailedMessage() argument
2135 boolean classOK = (Modifier.isPublic(defc.getModifiers()) && in accessFailedMessage()
2136 (defc == refc || in accessFailedMessage()
2139 classOK = (VerifyAccess.isClassAccessible(defc, lookupClass(), ALL_MODES) && in accessFailedMessage()
2140 (defc == refc || in accessFailedMessage()
/libcore/ojluni/annotations/hiddenapi/java/lang/invoke/
DMethodHandles.java578 java.lang.Class<?> defc, in checkAccess() argument
586 java.lang.Class<?> refc, java.lang.Class<?> defc, int mods) { in accessFailedMessage() argument