JDK-8180132 : Fix deprecation warnings in javax.crypto
  • Type: Sub-task
  • Component: security-libs
  • Sub-Component: javax.crypto
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2017-05-10
  • Updated: 2019-02-14
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.
Other
tbdUnresolved
Related Reports
Relates :  
Description
Deprecation warnings in javax.crypto are as follows: (information copied from JDK-8066619, as of 2014-12-03)

jdk/src/java.base/share/classes/com/sun/crypto/provider/PBES2Parameters.java:267: warning: [deprecation] equals(ObjectIdentifier) in ObjectIdentifier has been deprecated
jdk/src/java.base/share/classes/com/sun/crypto/provider/PBES2Parameters.java:296: warning: [deprecation] equals(ObjectIdentifier) in ObjectIdentifier has been deprecated
jdk/src/java.base/share/classes/com/sun/crypto/provider/PBES2Parameters.java:326: warning: [deprecation] equals(ObjectIdentifier) in ObjectIdentifier has been deprecated
jdk/src/java.base/share/classes/com/sun/crypto/provider/PBES2Parameters.java:328: warning: [deprecation] equals(ObjectIdentifier) in ObjectIdentifier has been deprecated
jdk/src/java.base/share/classes/com/sun/crypto/provider/PBES2Parameters.java:330: warning: [deprecation] equals(ObjectIdentifier) in ObjectIdentifier has been deprecated
jdk/src/java.base/share/classes/com/sun/crypto/provider/PBES2Parameters.java:332: warning: [deprecation] equals(ObjectIdentifier) in ObjectIdentifier has been deprecated
jdk/src/java.base/share/classes/com/sun/crypto/provider/PBES2Parameters.java:334: warning: [deprecation] equals(ObjectIdentifier) in ObjectIdentifier has been deprecated
jdk/src/java.base/share/classes/com/sun/crypto/provider/PBES2Parameters.java:358: warning: [deprecation] equals(ObjectIdentifier) in ObjectIdentifier has been deprecated
jdk/src/java.base/share/classes/com/sun/crypto/provider/PBES2Parameters.java:364: warning: [deprecation] equals(ObjectIdentifier) in ObjectIdentifier has been deprecated
jdk/src/java.base/share/classes/com/sun/crypto/provider/RSACipher.java:284: warning: [deprecation] TlsRsaPremasterSecretParameterSpec in sun.security.internal.spec has been deprecated
jdk/src/java.base/share/classes/com/sun/crypto/provider/RSACipher.java:453: warning: [deprecation] TlsRsaPremasterSecretParameterSpec in sun.security.internal.spec has been deprecated
jdk/src/java.base/share/classes/com/sun/crypto/provider/RSACipher.java:460: warning: [deprecation] TlsRsaPremasterSecretParameterSpec in sun.security.internal.spec has been deprecated
jdk/src/java.base/share/classes/com/sun/crypto/provider/RSACipher.java:461: warning: [deprecation] TlsRsaPremasterSecretParameterSpec in sun.security.internal.spec has been deprecated

Comments
The warnings in PBES2Parameters.java are no longer an issue since the deprecated ObjectIdentifier.equals(ObjectIdentifier) method was removed in JDK-8022444, and now it calls ObjectIdentifier.equals(Object) instead.
18-12-2017