JDK-8242387 : Release Note: java.net.HttpClient Does Not Override Protocols Specified in SSLContext Default Parameters
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 15
  • Priority: P4
  • Status: Closed
  • Resolution: Delivered
  • Submitted: 2020-04-08
  • Updated: 2021-05-14
  • Resolved: 2020-04-10
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 15
15Resolved
Description
During the setup of new connections, `java.net.http.HttpClient` now uses the default set of protocols provided by the `SSLContext` when negotiating the TLS handshake. In the absence of  any `SSLParameter`s explicitly supplied to the `HttpClient.builder`, the `HttpClient` has been updated to no longer override any default-selected protocols in the SSLContext. As a result, the actual TLS version that is negotiated might differ from that of previous releases, or it might even succeed or fail to negotiate when it previously might not have.