RFR 8251715 : Throw UncheckedIOException in place of InternalError when HttpClient fails due to unavailability of underlying resources required by SSLContext.

Daniel Fuchs daniel.fuchs at oracle.com
Tue Aug 18 09:39:59 UTC 2020


Hi Rahul,

Looks fine to me - but just one detail in the test: maybe you should
use `expectThrows` rather than `assertThrows` and then double check
that the exception you get is the one you expect.

best regards,

-- daniel

On 18/08/2020 10:21, Rahul Yadav wrote:
> Hello,
> 
> Request to have my fix reviewed for issue:
> 
> JDK-8251715:  Throw UncheckedIOException in place of InternalError when 
> HttpClient fails due to unavailability of underlying resources required 
> by SSLContext.
> 
> This fix updates jdk.internal.net.http.HttpClientImpl to throw an 
> UncheckedIOException instead of InternalError,
> in this case, when `SSLContext.getDefault()` fails due to unavailability 
> of underlying resources.
> 
> Issue:  https://bugs.openjdk.java.net/browse/JDK-8251715
> webrev: http://cr.openjdk.java.net/~ryadav/webrev_8251715/index.html
> 
> 
> - rahul



More information about the net-dev mailing list