SQiShER/java-object-diff

java object diff treat the same objects as different

songtianyi opened this issue · 10 comments

When comparing List<Object>, it think baseValue is null and workingValue is the first object of the list.
Did i missing something?

baseValue always be null, fking wired :(

I have tried to add @Id annotation for Objects, but still not work.

I have the same question for List compare, is there any update?

diff

actual
expect

hi,
as the pictures, actually the objects have the same position "0" and same value "101109" in the list. I expected they are the same but result is diff with "ADD". could anyone can help it?

@hiyizhiyu
Try override equal method of objects

@songtianyi
Really thanks!

I just override equals method in StringWrapper class as below
image
but it didn't work! you means diffs will invoke object's equals method? could you help give more detailed information?

@hiyizhiyu
sorry, i am not using this package any more.

@hiyizhiyu
I didn't have tried that solution, it's just a suggestion.

Any update on this issue? I'm having the same problem with version 0.95

That issue makes the library almost useless