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

Rahul Yadav rahul.r.yadav at oracle.com
Tue Aug 18 11:35:56 UTC 2020


Good point Daniel, i have included the feedback , updated webrev.

- rahul

On 18/08/2020 10:39, Daniel Fuchs wrote:
> 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