orientdb icon indicating copy to clipboard operation
orientdb copied to clipboard

Entity with LINKEDSET and it proxy produce false on equals

Open ghost opened this issue 13 years ago • 3 comments

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?

  1. Create entity, save it to get proxy.
  2. 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

ghost avatar Feb 16 '13 12:02 ghost

Hey @MaDaPHaKa wdyt?

lvca avatar Feb 16 '13 17:02 lvca

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.

MaDaPHaKa avatar Feb 16 '13 19:02 MaDaPHaKa

Hi, fixed in commit d5541fafd45ab4c48ca9ac94b076c302601e5f24

MaDaPHaKa avatar Feb 16 '13 20:02 MaDaPHaKa