changeset 13713:c43d5293509c

8138884: MethodHandles.Lookup.findVirtual() Javadoc fails to consider private interface methods Reviewed-by: psandoz, mhaupt
author srastogi
date Wed, 10 Feb 2016 10:44:58 +0100
parents 854a1100be00
children ac36ba004c93
files src/java.base/share/classes/java/lang/invoke/MethodHandles.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/lang/invoke/MethodHandles.java	Tue Feb 09 11:58:36 2016 -0800
+++ b/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