RFR: 8303232: java.util.Date.parse(String) and java.util.Date(String) don't declare thrown IllegalArgumentException

Lance Andersen lancea at openjdk.org
Tue Feb 28 11:04:05 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.

Thanks for getting the CSR submitted  Justin (and it is already approved).

-------------

Marked as reviewed by lancea (Reviewer).

PR: https://git.openjdk.org/jdk/pull/12779


More information about the core-libs-dev mailing list