This is an automated email from the git hooks/post-receive script. ebourg-guest pushed a commit to tag REL8_2_510 in repository libpostgresql-jdbc-java.
commit f624b98c52e6cf6b0f9c19856ceffe77c8e8bfe1 Author: Kris Jurka <[email protected]> Date: Thu Jan 15 04:18:17 2009 +0000 My previous patch to fix the equals and hashcode for connection pools didn't build with a 1.4 JDK. 1.5+ was doing autoboxing which I didn't originally notice. --- org/postgresql/ds/jdbc23/AbstractJdbc23PooledConnection.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/org/postgresql/ds/jdbc23/AbstractJdbc23PooledConnection.java b/org/postgresql/ds/jdbc23/AbstractJdbc23PooledConnection.java index 54a225d..42c5c7c 100644 --- a/org/postgresql/ds/jdbc23/AbstractJdbc23PooledConnection.java +++ b/org/postgresql/ds/jdbc23/AbstractJdbc23PooledConnection.java @@ -3,7 +3,7 @@ * Copyright (c) 2004-2005, PostgreSQL Global Development Group * * IDENTIFICATION -* $PostgreSQL: pgjdbc/org/postgresql/ds/jdbc23/AbstractJdbc23PooledConnection.java,v 1.1.2.1 2007/11/14 22:03:47 jurka Exp $ +* $PostgreSQL: pgjdbc/org/postgresql/ds/jdbc23/AbstractJdbc23PooledConnection.java,v 1.1.2.2 2009/01/07 05:29:12 jurka Exp $ * *------------------------------------------------------------------------- */ @@ -272,11 +272,11 @@ public abstract class AbstractJdbc23PooledConnection } if (method.getName().equals("equals")) { - return proxy == args[0]; + return new Boolean(proxy == args[0]); } if (method.getName().equals("hashCode")) { - return System.identityHashCode(proxy); + return new Integer(System.identityHashCode(proxy)); } try { @@ -413,11 +413,11 @@ public abstract class AbstractJdbc23PooledConnection } if (method.getName().equals("hashCode")) { - return System.identityHashCode(proxy); + return new Integer(System.identityHashCode(proxy)); } if (method.getName().equals("equals")) { - return proxy == args[0]; + return new Boolean(proxy == args[0]); } return method.invoke(st, args); } -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libpostgresql-jdbc-java.git _______________________________________________ pkg-java-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

