We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a62e7d commit b314396Copy full SHA for b314396
src/java.base/share/classes/jdk/internal/reflect/MethodHandleAccessorFactory.java
@@ -412,10 +412,11 @@ private static int slotCount(Executable member) {
412
*
413
* @param method the method to check
414
* @return {@code true} if this method is signature polymorphic
415
- * @jls 15.12 Method Invocation Expressions
+ * @jls 15.12.3 Compile-Time Step 3: Is the Chosen Method Appropriate?
416
+ * @jvms 2.9.3 Signature Polymorphic Methods
417
*/
418
public static boolean isSignaturePolymorphicMethod(Method method) {
- // Native; has variable arity parameter
419
+ // ACC_NATIVE and ACC_VARARGS
420
if (!method.isVarArgs() || !Modifier.isNative(method.getModifiers())) {
421
return false;
422
}
0 commit comments