changeset 17477:09aab50cf738

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
author valeriep
date Tue, 07 May 2013 14:04:53 -0700
parents 5ae43433d158
children 2cd7d026396c
files jdk/src/share/classes/sun/security/pkcs11/wrapper/PKCS11.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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();
     }