@@ -332,10 +332,10 @@ public static Class<?> forName(String name, @Nullable ClassLoader classLoader)
332
332
* @return a class instance for the supplied name
333
333
* @throws IllegalArgumentException if the class name was not resolvable
334
334
* (that is, the class could not be found or the class file could not be loaded)
335
- * @throws IllegalStateException if the corresponding class is resolvable but
336
- * there was a readability mismatch in the inheritance hierarchy of the class
337
- * (typically a missing dependency declaration in a Jigsaw module definition
338
- * for a superclass or interface implemented by the class to be loaded here)
335
+ * @throws IllegalStateException if the corresponding class is resolvable but there
336
+ * was a readability mismatch in the inheritance hierarchy of the class (typically a
337
+ * missing dependency declaration in a Java Module System module definition for a
338
+ * superclass or interface implemented by the class to be loaded here)
339
339
* @see #forName(String, ClassLoader)
340
340
*/
341
341
public static Class <?> resolveClassName (String className , @ Nullable ClassLoader classLoader )
@@ -365,10 +365,10 @@ public static Class<?> resolveClassName(String className, @Nullable ClassLoader
365
365
* (can be {@code null} which indicates the default class loader)
366
366
* @return whether the specified class is present (including all of its
367
367
* superclasses and interfaces)
368
- * @throws IllegalStateException if the corresponding class is resolvable but
369
- * there was a readability mismatch in the inheritance hierarchy of the class
370
- * (typically a missing dependency declaration in a Jigsaw module definition
371
- * for a superclass or interface implemented by the class to be checked here)
368
+ * @throws IllegalStateException if the corresponding class is resolvable but there
369
+ * was a readability mismatch in the inheritance hierarchy of the class (typically a
370
+ * missing dependency declaration in a Java Module System module definition for a
371
+ * superclass or interface implemented by the class to be checked here)
372
372
*/
373
373
public static boolean isPresent (String className , @ Nullable ClassLoader classLoader ) {
374
374
try {
@@ -1388,8 +1388,9 @@ public static Method getMostSpecificMethod(Method method, @Nullable Class<?> tar
1388
1388
1389
1389
/**
1390
1390
* Determine a corresponding interface method for the given method handle, if possible.
1391
- * <p>This is particularly useful for arriving at a public exported type on Jigsaw
1392
- * which can be reflectively invoked without an illegal access warning.
1391
+ * <p>This is particularly useful for arriving at a public exported type on the Java
1392
+ * Module System which allows the method to be invoked via reflection without an illegal
1393
+ * access warning.
1393
1394
* @param method the method to be invoked, potentially from an implementation class
1394
1395
* @return the corresponding interface method, or the original method if none found
1395
1396
* @since 5.1
@@ -1402,8 +1403,9 @@ public static Method getInterfaceMethodIfPossible(Method method) {
1402
1403
1403
1404
/**
1404
1405
* Determine a corresponding interface method for the given method handle, if possible.
1405
- * <p>This is particularly useful for arriving at a public exported type on Jigsaw
1406
- * which can be reflectively invoked without an illegal access warning.
1406
+ * <p>This is particularly useful for arriving at a public exported type on the Java
1407
+ * Module System which allows the method to be invoked via reflection without an illegal
1408
+ * access warning.
1407
1409
* @param method the method to be invoked, potentially from an implementation class
1408
1410
* @param targetClass the target class to check for declared interfaces
1409
1411
* @return the corresponding interface method, or the original method if none found
0 commit comments