RFR: 8263364: sun/net/www/http/KeepAliveStream/KeepAliveStreamCloseWithWrongContentLength.java wedged in getInputStream
Daniel Fuchs
dfuchs at openjdk.java.net
Fri Jun 11 11:10:53 UTC 2021
On Fri, 11 Jun 2021 10:46:32 GMT, Ivan Šipka <isipka at openjdk.org> wrote:
> @dfuch could you please review, thank you.
test/jdk/sun/net/www/http/KeepAliveStream/KeepAliveStreamCloseWithWrongContentLength.java line 139:
> 137: is.close();
> 138: } catch (IOException e) {
> 139: throw new RuntimeException (e);
No need to catch and wrap since main is declared to throw Exception. Just let IOException and NullPointerException percolate out of main...
-------------
PR: https://git.openjdk.java.net/jdk/pull/4472
More information about the net-dev
mailing list