Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java object diff treat the same objects as different #190

Open
songtianyi opened this issue Aug 16, 2017 · 10 comments
Open

java object diff treat the same objects as different #190

songtianyi opened this issue Aug 16, 2017 · 10 comments

Comments

@songtianyi
Copy link

songtianyi commented Aug 16, 2017

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

@songtianyi
Copy link
Author

baseValue always be null, fking wired :(

@songtianyi
Copy link
Author

songtianyi commented Aug 16, 2017

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

@hiyizhiyu
Copy link

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

@hiyizhiyu
Copy link

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?

@songtianyi
Copy link
Author

@hiyizhiyu
Try override equal method of objects

@hiyizhiyu
Copy link

@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?

@songtianyi
Copy link
Author

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

@songtianyi
Copy link
Author

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

@jcardenaslie
Copy link

jcardenaslie commented Mar 9, 2020

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

@DredderGun
Copy link

That issue makes the library almost useless

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants