8010134: A finalizer in sun.security.pkcs11.wrapper.PKCS11 perhaps should be protected
Summary: Change the finalize method of PKCS11 class to be protected.
Reviewed-by: xuelei
--- a/jdk/src/share/classes/sun/security/pkcs11/wrapper/PKCS11.java Tue May 07 12:05:52 2013 -0700
+++ b/jdk/src/share/classes/sun/security/pkcs11/wrapper/PKCS11.java Tue May 07 14:04:53 2013 -0700
@@ -1528,7 +1528,7 @@
*
* @exception Throwable If finalization fails.
*/
- public void finalize() throws Throwable {
+ protected void finalize() throws Throwable {
disconnect();
}