JDK-8218932 : Remove the internal package com.sun.net.ssl
  • Type: CSR
  • Component: security-libs
  • Sub-Component: javax.net.ssl
  • Priority: P3
  • Status: Closed
  • Resolution: Approved
  • Fix Versions: 13
  • Submitted: 2019-02-13
  • Updated: 2019-02-26
  • Resolved: 2019-02-26
Related Reports
CSR :  
Description
Summary
-------
Remove the internal package com.sun.net.ssl.

Problem
-------
The package com.sun.net.ssl has been deprecated and the feature has been moved to the public package javax.net.ssl since JDK 1.4.  The codes in the com.sun.net.ssl have not been updated for a while.

This internal package is not exported in the java.base module.

Solution
--------
Clean up the code and remove the internal package com.sun.net.ssl.

Note that an application may still use the name "com.sun.net.ssl.internal.ssl.Provider" as the SunJSSE provider name.  For compatibility, the name is still supported in the JDK.  The actual implementation refers to the sun.security.ssl.SunJSSE class.

With this update, the SunJSSE provider can be specified with one of the following names:

    1. SunJSSE
    2. com.sun.net.ssl.internal.ssl.Provider

Both "SunJSSE" and "com.sun.net.ssl.internal.ssl.Provider" are existing names.

Specification
-------------
No public specification update.  See Solution section.

Suggested Release Note
-------------
The internal package com.sun.net.ssl is removed from the SunJSSE provider.  The legacy provider name, "com.sun.net.ssl.internal.ssl.Provider", is reserved for compatibility.  However, "SunJSSE" should be used for new applications (for example, "SSLContext.getInstance("TLS", "SunJSSE")").
Comments
Moving to Approved. Please considering including a release note for this change.
26-02-2019