# HG changeset patch # User valeriep # Date 1367960693 25200 # Node ID 09aab50cf738455bc389982f636d332c435ff9ef # Parent 5ae43433d158759799fbe66572bcf34e58e2c206 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 diff -r 5ae43433d158 -r 09aab50cf738 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(); }