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

Naoto Sato naoto at openjdk.org
Tue Feb 28 18:21:06 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.

Marked as reviewed by naoto (Reviewer).

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

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


More information about the core-libs-dev mailing list