# HG changeset patch # User srastogi # Date 1455097498 -3600 # Node ID 044f660251ccbbd6156cebee485e48b28e0c46c5 # Parent 6a1e501543ee64efceb24b95a7168c841e54e3b4 8138884: MethodHandles.Lookup.findVirtual() Javadoc fails to consider private interface methods Reviewed-by: psandoz, mhaupt diff -r 6a1e501543ee -r 044f660251cc 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