commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 31786] - [dbutils] MockResultSet needs to handle equals and hashCode
Date Mon, 01 Nov 2004 03:11:32 GMT
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


Mime
View raw message