JDK-8067091 : Suppress Windows-specific deprecation warnings in the jdk.crypto.mscapi module
  • Type: Sub-task
  • Component: security-libs
  • Sub-Component: javax.crypto
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows
  • Submitted: 2014-12-10
  • Updated: 2015-06-04
  • Resolved: 2014-12-16
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 9
9 b44Fixed
Related Reports
Relates :  
Comments
Review thread: http://mail.openjdk.java.net/pipermail/security-dev/2014-December/011504.html
16-12-2014

No code changes are appropriate. Suppress the warnings in the usual way: diff --git a/src/jdk.crypto.mscapi/windows/classes/sun/security/mscapi/RSACipher.java b/src/jdk.crypto.mscapi/windows/classes/sun/security/mscapi/RSACipher.java --- a/src/jdk.crypto.mscapi/windows/classes/sun/security/mscapi/RSACipher.java +++ b/src/jdk.crypto.mscapi/windows/classes/sun/security/mscapi/RSACipher.java @@ -159,6 +159,7 @@ } // see JCE spec + @SuppressWarnings("deprecation") protected void engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException { @@ -369,6 +370,7 @@ } // see JCE spec + @SuppressWarnings("deprecation") protected java.security.Key engineUnwrap(byte[] wrappedKey, String algorithm, int type) throws InvalidKeyException, NoSuchAlgorithmException {
10-12-2014