8138884: MethodHandles.Lookup.findVirtual() Javadoc fails to consider private interface methods
authorsrastogi
Wed, 10 Feb 2016 10:44:58 +0100
changeset 35772 044f660251cc
parent 35771 6a1e501543ee
child 35773 80def5fa4d65
8138884: MethodHandles.Lookup.findVirtual() Javadoc fails to consider private interface methods Reviewed-by: psandoz, mhaupt
jdk/src/java.base/share/classes/java/lang/invoke/MethodHandles.java
--- a/jdk/src/java.base/share/classes/java/lang/invoke/MethodHandles.java	Tue Feb 09 11:58:36 2016 -0800
+++ b/jdk/src/java.base/share/classes/java/lang/invoke/MethodHandles.java	Wed Feb 10 10:44:58 2016 +0100
@@ -856,7 +856,8 @@
          * @return the desired method handle
          * @throws NoSuchMethodException if the method does not exist
          * @throws IllegalAccessException if access checking fails,
-         *                                or if the method is {@code static}
+         *                                or if the method is {@code static},
+         *                                or if the method is {@code private} method of interface,
          *                                or if the method's variable arity modifier bit
          *                                is set and {@code asVarargsCollector} fails
          * @exception SecurityException if a security manager is present and it