From 3e45966cd3f8454720942f3a44754c2db52c137c Mon Sep 17 00:00:00 2001 From: Shilpi Rastogi Date: Wed, 10 Feb 2016 10:44:58 +0100 Subject: [PATCH] 8138884: MethodHandles.Lookup.findVirtual() Javadoc fails to consider private interface methods Reviewed-by: psandoz, mhaupt --- .../share/classes/java/lang/invoke/MethodHandles.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jdk/src/java.base/share/classes/java/lang/invoke/MethodHandles.java b/jdk/src/java.base/share/classes/java/lang/invoke/MethodHandles.java index 45908f1ea23..fc9ac8e1518 100644 --- a/jdk/src/java.base/share/classes/java/lang/invoke/MethodHandles.java +++ b/jdk/src/java.base/share/classes/java/lang/invoke/MethodHandles.java @@ -856,7 +856,8 @@ assertEquals("", (String) MH_newString.invokeExact()); * @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