javers compare is throwing exception when comparing two String arrays #199
Labels
Comments
Looks like this may be by design, which is completely fine since you can make a direct equal comparison. I just wanted to make sure. |
I think you should compare entities (managed classes) here, exactly as exception says :) |
Will check it , pretty sure that works for lists |
okay, so we have a feature for wrapping top level containers into Entities. It works for collections but not yet for Arrays. If you would like to contribute a Pull Request, this issue is easy to bo solved in LiveGraphFactory.wrapTopLevelContainer() |
sure I'll check it out. |
dmmiller612
added a commit
to dmmiller612/javers
that referenced
this issue
Sep 17, 2015
…ing exceptions when comparing two arrays
bartoszwalacik
added a commit
that referenced
this issue
Sep 20, 2015
…ctory Issue #199 added Object array to LiveGraphFactory to stop throwing ex…
released in v 1.3.8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently the above code is throwing this exception:
CLASS_NOT_MANAGED JaVers runtime error - given javaClass '[Ljava.lang.String;' is mapped to ArrayType, ManagedType expected .
I am currently using version 1.3.4.
The text was updated successfully, but these errors were encountered: