changeset 7122:76998d11a643

8005535: SSLSessionImpl should have protected finalize() Reviewed-by: weijun, wetmore
author xuelei
date Mon, 13 May 2013 05:41:51 -0700
parents 90f715cceaae
children 46db0e633240
files src/share/classes/sun/security/ssl/SSLSessionImpl.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/security/ssl/SSLSessionImpl.java	Fri May 10 23:56:24 2013 +0400
+++ b/src/share/classes/sun/security/ssl/SSLSessionImpl.java	Mon May 13 05:41:51 2013 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1996, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 2013, 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
@@ -822,7 +822,7 @@
      * them are removed.
      */
     @Override
-    public void finalize() {
+    protected void finalize() throws Throwable {
         String[] names = getValueNames();
         for (int i = 0; i < names.length; i++) {
             removeValue(names[i]);