Fixed nasty bug in hashCode.

This commit is contained in:
Mattias Arthursson
2007-10-21 10:49:36 +00:00
parent 10e2eaa9db
commit 2e10ed067b

View File

@@ -77,7 +77,7 @@ public class TransactionAwareDirContextInvocationHandler implements
return (proxy == args[0] ? Boolean.TRUE : Boolean.FALSE);
} else if (methodName.equals("hashCode")) {
// Use hashCode of Connection proxy.
return new Integer(proxy.hashCode());
return new Integer(hashCode());
} else if (methodName.equals("close")) {
doCloseConnection(target, contextSource);
return null;