Skip to content

Commit b314396

Browse files
committed
Better comments
1 parent 9a62e7d commit b314396

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/java.base/share/classes/jdk/internal/reflect/MethodHandleAccessorFactory.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,10 +412,11 @@ private static int slotCount(Executable member) {
412412
*
413413
* @param method the method to check
414414
* @return {@code true} if this method is signature polymorphic
415-
* @jls 15.12 Method Invocation Expressions
415+
* @jls 15.12.3 Compile-Time Step 3: Is the Chosen Method Appropriate?
416+
* @jvms 2.9.3 Signature Polymorphic Methods
416417
*/
417418
public static boolean isSignaturePolymorphicMethod(Method method) {
418-
// Native; has variable arity parameter
419+
// ACC_NATIVE and ACC_VARARGS
419420
if (!method.isVarArgs() || !Modifier.isNative(method.getModifiers())) {
420421
return false;
421422
}

0 commit comments

Comments
 (0)