postgresql-jdbc.git / summary / log / commit / refs
commit 5dd558b2aebaabf5769567d2daa2c12410c975a2
Author: Kris Jurka <books@ejurka.com>
Date: Sun Nov 05 06:14:18 2006 +0000
finalize method should be protected to prevent it from being called
by user code.
org/postgresql/jdbc2/AbstractJdbc2Connection.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/org/postgresql/jdbc2/AbstractJdbc2Connection.java b/org/postgresql/jdbc2/AbstractJdbc2Connection.java
index 52930372..a88fbe03 100644
--- a/org/postgresql/jdbc2/AbstractJdbc2Connection.java
+++ b/org/postgresql/jdbc2/AbstractJdbc2Connection.java
@@ -3,7 +3,7 @@
* Copyright (c) 2004-2005, PostgreSQL Global Development Group
*
* IDENTIFICATION
-* $PostgreSQL: pgjdbc/org/postgresql/jdbc2/AbstractJdbc2Connection.java,v 1.37 2005/11/24 06:44:21 jurka Exp $
+* $PostgreSQL: pgjdbc/org/postgresql/jdbc2/AbstractJdbc2Connection.java,v 1.38 2006/08/06 18:11:33 jurka Exp $
*
*-------------------------------------------------------------------------
*/
@@ -829,7 +829,7 @@ public abstract class AbstractJdbc2Connection implements BaseConnection
* clients didn't close the connection, and once a fortnight enough
* clients were open to kill the postgres server.
*/
- public void finalize() throws Throwable
+ protected void finalize() throws Throwable
{
if (openStackTrace != null)
logger.log(GT.tr("Finalizing a Connection that was never closed:"), openStackTrace);
[parent: 4c4134a248bb]