hg: jdk/submit: 8248006: Revisit exceptions thrown when creating an HttpClient fails due to unavailability of underlying resources

patrick.concannon at oracle.com patrick.concannon at oracle.com
Mon Aug 10 15:09:55 UTC 2020


Changeset: efe48e821005
Author:    ryadav
Date:      2020-08-10 15:15 +0100
URL:       https://hg.openjdk.java.net/jdk/submit/rev/efe48e821005

8248006: Revisit exceptions thrown when creating an HttpClient fails due to unavailability of underlying resources
Summary: This fix updates jdk.internal.net.http.HttpClientImpl to throw an UncheckedIOException instead of InternalError.
Reviewed-by: chegar, dfuchs

! src/java.net.http/share/classes/java/net/http/HttpClient.java
! src/java.net.http/share/classes/jdk/internal/net/http/HttpClientImpl.java
+ test/jdk/java/net/httpclient/HttpClientExceptionTest.java



More information about the jdk-submit-changes mailing list