JDK-8020981: Update methods of java.lang.reflect.Parameter to throw correct exceptions
pbenedict at apache.org
Fri Sep 13 13:53:01 UTC 2013
MalformedParametersException should receive a @since tag.
Additionally, the javadoc doesn't describe what it means for a parameter to
be malformed. The answer doesn't need to be exhaustive, but I think some
examples would help developers if they catch one and need to dig into class
files. Or if there's a reference point to the JLS, that would be good too.
Here's a good sample from Eric:
PS: I think the consistent exception hierarchy for reflective operations
should remain in tact. Although it's annoying checked exceptions exist, my
preference would be to extend from ReflectiveOperationException rather than
More information about the core-libs-dev