Hello,

Please review the simple changes to address

JDK-8067091: Fix Windows-specific deprecation warnings in the jdk.crypto.mscapi module
    http://cr.openjdk.java.net/~darcy/8067091.0/

Patch below.

Thanks,

-Joe

diff -r e934242d0c1f src/jdk.crypto.mscapi/windows/classes/sun/security/mscapi/RSACipher.java --- a/src/jdk.crypto.mscapi/windows/classes/sun/security/mscapi/RSACipher.java Tue Dec 16 09:51:17 2014 -0800 +++ b/src/jdk.crypto.mscapi/windows/classes/sun/security/mscapi/RSACipher.java Tue Dec 16 10:22:37 2014 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -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 {

Reply via email to