OpenJDK / portola / portola
changeset 55338:84b9996abbee
8181869: getAnnotatedParameterTypes%G?%@() specification should be clarified
Reviewed-by: lancea
author | darcy |
---|---|
date | Sun, 09 Jun 2019 15:21:43 -0700 |
parents | fcc702f17582 |
children | 6e432194ee97 |
files | src/java.base/share/classes/java/lang/reflect/Executable.java |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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