On Sun, 12 Feb 2023 09:25:01 GMT, Alan Bateman <al...@openjdk.org> wrote:
> > Javadoc of the `Date.parse` method does not mention which exceptions could > > be thrown. That's why I decided to be on the safe side and do not change > > exception type. > > That's a bug in its javadoc. It may be deprecated but it should specify that > it throws IAE if the input cannot be parsed. Yes - thank you. This is supposed to be a simple cleanup so I'm feeling more comfortable that the logic hasn't changed. The code before the change was also catching Exception. ------------- PR: https://git.openjdk.org/jdk/pull/12451