[libpostgresql-jdbc-java] 02/07: 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.
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Mon Jan 9 10:20:17 UTC 2017
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to tag REL8_1_414
in repository libpostgresql-jdbc-java.
commit 1e29a7d88dc690aaf4c912397b8dc6b220eb7dad
Author: Kris Jurka <books at ejurka.com>
Date: Thu Jan 15 04:18:24 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/common/PooledConnectionImpl.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/org/postgresql/ds/common/PooledConnectionImpl.java b/org/postgresql/ds/common/PooledConnectionImpl.java
index 3060c98..80956f5 100644
--- a/org/postgresql/ds/common/PooledConnectionImpl.java
+++ b/org/postgresql/ds/common/PooledConnectionImpl.java
@@ -3,7 +3,7 @@
* Copyright (c) 2004-2005, PostgreSQL Global Development Group
*
* IDENTIFICATION
-* $PostgreSQL: pgjdbc/org/postgresql/ds/common/PooledConnectionImpl.java,v 1.10.4.2 2007/11/14 22:03:57 jurka Exp $
+* $PostgreSQL: pgjdbc/org/postgresql/ds/common/PooledConnectionImpl.java,v 1.10.4.3 2009/01/07 05:29:18 jurka Exp $
*
*-------------------------------------------------------------------------
*/
@@ -275,11 +275,11 @@ public class PooledConnectionImpl implements PooledConnection
}
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]);
}
try
{
@@ -416,11 +416,11 @@ public class PooledConnectionImpl implements PooledConnection
}
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
More information about the pkg-java-commits
mailing list