hashCode not implemented
Ben Anderson <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.shark |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I just got tricked by the fact that WfActivityWrapper implements
equals but not hashCode. This is obviously undesirable. I assume
other classes are the same, but haven't looked into it.
I added this code to WfActivityWrapper:
public int hashCode () {
return this.id.hashCode();
}
and now my collections are working correctly.
-Ben
message-footer.txt
(text/plain, 271 B)
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws