Entity with LINKEDSET and it proxy produce false on equals
OrientDB release? (If you're using a SNAPSHOT please attach also the build number found in "build.number" file):
All version, including 1.4.0-SNAPSHOT.
What steps will reproduce the problem?
- Create entity, save it to get proxy.
- Call proxy.equals(entity).
Enviroment
jdk1.6_u32
What is the expected output? What do you see instead?
entity.getSomeLinkedSet().equals(proxy.getSomeLinkedSet()) produce true, when proxy.getSomeLinkedSet().equals(entity.getSomeLinkedSet()) produce false.
Looks like LINKEDSET equals() method is broken.
Reproducing test is here http://yadi.sk/d/f8Mjex9V2dx3r
Hey @MaDaPHaKa wdyt?
The Object Set implementation does not override the HashSet equals method, so i have to look a little into it. I'm running the testcases to understand it.
Hi, fixed in commit d5541fafd45ab4c48ca9ac94b076c302601e5f24