8181869: getAnnotatedParameterTypes%G%@() specification should be clarified
Reviewed-by: lancea
--- a/src/java.base/share/classes/java/lang/reflect/Executable.java Sun Jun 09 05:56:46 2019 -0400
+++ b/src/java.base/share/classes/java/lang/reflect/Executable.java Sun Jun 09 15:21:43 2019 -0700
@@ -234,6 +234,9 @@
* parameter types, in declaration order, of the executable
* represented by this object. Returns an array of length
* 0 if the underlying executable takes no parameters.
+ * Note that the constructors of some inner classes
+ * may have an implicitly declared parameter in addition to
+ * explicitly declared ones.
*
* @return the parameter types for the executable this object
* represents
@@ -257,6 +260,9 @@
* parameter types, in declaration order, of the executable represented by
* this object. Returns an array of length 0 if the
* underlying executable takes no parameters.
+ * Note that the constructors of some inner classes
+ * may have an implicitly declared parameter in addition to
+ * explicitly declared ones.
*
* <p>If a formal parameter type is a parameterized type,
* the {@code Type} object returned for it must accurately reflect
@@ -699,6 +705,9 @@
*
* Returns an array of length 0 if the method/constructor declares no
* parameters.
+ * Note that the constructors of some inner classes
+ * may have an implicitly declared parameter in addition to
+ * explicitly declared ones.
*
* @return an array of objects representing the types of the
* formal parameters of the method or constructor represented by this