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
ClassCastException: MissingProperty cannot be cast to java.lang.Double #935
Comments
Hi, please push this case here , https://github.com/javers/javers/tree/master/javers-core/src/test/groovy/org/javers/core/cases |
Done #936 |
thanks for reporting, fortunately, that's easy to fix |
Thanks for the fix. I am still wandering about the behavior that I reported:
|
Fixed in 5.8.9, try now (map was not the cause) but handling MISSING_PROPERTY in |
Thank you! |
Hello, we have a use case that needs a custom comparator for
Double
values. However in some cases we get the following exception:I managed to reproduce it in the following test case.
It seems that Javers sees the values in the map as
Parent
type not the concrete type.If I change
Map<String, Parent> map
toMap<String, Object> map
then the test passes.If I keep
Map<String, Parent> map
and compare the maps directly likejavers.compare(container1.map, container2.map)
then the test passes.Would it be possible to avoid this exception?
The text was updated successfully, but these errors were encountered: