![]() |
![]() |
|
[
Permalink
| « Hide
]
Brett Porter added a comment - 12/Jun/07 07:17 PM
actually, the code supplied doesn't work, as the hashcode is used to test equality, which leads to them being "equal". So the hashcode function must be reviewed.
I've also found this to effect DetachState
ok, changing the assignment of hashcode to the method above in OID corrects the problem for me.
The way detachstate works may need to be reviewed since that map is vulnerable to any further collisions. I haven't looked at 1.2.0-beta yet to see if these problems are irrelevant there. All comments should be around CVS HEAD. We just dont have time for 1.1 support. Thx
a cursory glance at HEAD shows the same code in place, so I expect it to suffer the exact same problem.
CVS HEAD now has a more conventional form of equals and hashCode. Since no testcase was provided you'll have to test if this works for you. If you come backe before 17/06 and confirm that this passes your tests then it could be backported onto 1.1 (the final planned 1.1 release is on 18/06)
rolled back that change - JDO TCK fails.
CVS HEAD now has contrib from Laurent Balthasar for equals() that should fix this. Consequently we assume it's fixed
|
||||||||||||||||||||||||||||||||||