RFR: 8303232: java.util.Date.parse(String) and java.util.Date(String) don't declare thrown IllegalArgumentException
Jaikiran Pai
jpai at openjdk.org
Tue Feb 28 01:32:02 UTC 2023
On Tue, 28 Feb 2023 00:07:05 GMT, Justin Lu <jlu at openjdk.org> wrote:
> The method `java.util.Date.parse(String)` and as a result, constructor `java.util.Date(String)` throw an `IllegalArgumentException`. This exception is not properly referenced in the javadoc, and this PR simply adds the throws javadoc tag to make it apparent.
Hello Justin, this doc-only change looks good to me. In the past, we have created CSR for changes like these where the javadoc was updated to clarify the existing behaviour. I think this too will need one.
-------------
Marked as reviewed by jpai (Reviewer).
PR: https://git.openjdk.org/jdk/pull/12779
More information about the core-libs-dev
mailing list