8010134: A finalizer in sun.security.pkcs11.wrapper.PKCS11 perhaps should be protected
authorvaleriep
Tue, 07 May 2013 14:04:53 -0700
changeset 17477 09aab50cf738
parent 17441 5ae43433d158
child 17478 2cd7d026396c
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
jdk/src/share/classes/sun/security/pkcs11/wrapper/PKCS11.java
--- 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();
     }