-
CSR
-
Resolution: Approved
-
P4
-
None
-
source
-
minimal
-
-
Java API
-
SE
Summary
Add the final keyword to the static java.security.cert.CertStore::getDefaultType(), javax.net.ssl.KeyManagerFactory::getDefaultAlgorithm(), and javax.net.ssl.TrustManagerFactory::getDefaultAlgorithm() methods.
Problem
As part of JDK-8285263 and JDK-8285504, three changes were made that changed the signatures of public APIs: The final keyword was inadvertently removed from the static java.security.cert.CertStore::getDefaultType(), javax.net.ssl.KeyManagerFactory::getDefaultAlgorithm(), and javax.net.ssl.TrustManagerFactory::getDefaultAlgorithm() methods. This change had an extremely low compatibility risk so we decided to wait and revert the change in the next JDK release. That time has come.
Solution
Add the final keyword to static java.security.cert.CertStore::getDefaultType(), javax.net.ssl.KeyManagerFactory::getDefaultAlgorithm() and javax.net.ssl.TrustManagerFactory::getDefaultAlgorithm() methods.
Specification
Changes for java.security.cert.CertStore:
- public static String getDefaultType() {
+ public static final String getDefaultType() {
Changes for javax.net.ssl.KeyManagerFactory:
- public static String getDefaultAlgorithm() {
+ public static final String getDefaultAlgorithm() {
Changes for javax.net.ssl.TrustManagerFactory:
- public static String getDefaultAlgorithm() {
+ public static final String getDefaultAlgorithm() {
- csr of
-
JDK-8302696 Revert API signature changes made in JDK-8285504 and JDK-8285263
-
- Resolved
-