8138884: MethodHandles.Lookup.findVirtual() Javadoc fails to consider private interface methods
Reviewed-by: psandoz, mhaupt
--- 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