JEP 416: Missing throws IllegalArgumentException declaration for Method::invoke?
Marc Hoffmann
hoffmann at mountainminds.com
Thu Nov 11 08:21:14 UTC 2021
Hi,
with the implementation of JEP 416 (https://github.com/openjdk/jdk/commit/c6339cb8a255d387bb182ad20dd69f3d460cf1ed <https://github.com/openjdk/jdk/commit/c6339cb8a255d387bb182ad20dd69f3d460cf1ed>) the throws declaration for IllegalArgumentException on Method::invoke was removed — while it is still described in JavaDoc. Was this on purpose?
Sorry if this was discussed before, but I was not able to find a review discussion around this commit. Also I’m not sure what the policy is whether unchecked exceptions should be declared if mentioned in JavaDoc.
Best regards,
-marc
More information about the core-libs-dev
mailing list