RFR: 8301964: Expensive fillInStackTrace operation in HttpURLConnection.getLastModified when no last-modified in response [v3]

Daniel Fuchs dfuchs at openjdk.org
Mon Feb 13 12:40:29 UTC 2023


On Sun, 12 Feb 2023 09:25:01 GMT, Alan Bateman <alanb at 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


More information about the net-dev mailing list