You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by ol...@apache.org on 2003/12/15 22:14:22 UTC
cvs commit: db-ojb/src/java/org/apache/ojb/broker/accesslayer IndirectionHandler.java
olegnitz 2003/12/15 13:14:22
Modified: src/java/org/apache/ojb/broker/accesslayer
IndirectionHandler.java
Log:
Now hashCode of proxy is equal to hashCode of the identity (proposed by Thierry Hanot)
Revision Changes Path
1.22 +2 -2 db-ojb/src/java/org/apache/ojb/broker/accesslayer/IndirectionHandler.java
Index: IndirectionHandler.java
===================================================================
RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/accesslayer/IndirectionHandler.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- IndirectionHandler.java 28 Oct 2003 21:21:19 -0000 1.21
+++ IndirectionHandler.java 15 Dec 2003 21:14:21 -0000 1.22
@@ -271,7 +271,7 @@
// so we use the hashCode of the handler instead of the realSubject's one
if ("hashCode".equals(methodName))
{
- return new Integer(hashCode());
+ return new Integer(id.hashCode());
}
// handle toString differently for non-materialized proxies
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org