You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/11/01 04:11:32 UTC
DO NOT REPLY [Bug 31786] -
[dbutils] MockResultSet needs to handle equals and hashCode
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31786>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=31786
[dbutils] MockResultSet needs to handle equals and hashCode
dgraham@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Version|unspecified |1.0 Final
------- Additional Comments From dgraham@apache.org 2004-11-01 03:11 -------
I added toString, equals, and hashCode implementations to MockResultSet and
MockResultSetMetaData. A couple things though:
- return Integer.valueOf(System.identityHashCode(proxy)) does not compile so I
changed it to return new Integer(System.identityHashCode(proxy))
- return proxy.toString() causes an infinite loop so I changed it to return
"MockResultSet " + System.identityHashCode(proxy)
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org