-
-
Notifications
You must be signed in to change notification settings - Fork 390
Closed
Description
I tried out JaVers (version 1.1.0), but encountered a problem. Comparing a property with a value of different subclasses leads to an IllegalArgumentException. Is this intended behaviour?
Example to reproduce the exception:
class Example {
class Holder {
A a;
}
class A {}
class B0 extends A {
String b0 = "asdf";
}
class B1 extends A {
String b1 = "qwer";
}
public void doesNotWork() {
Javers javers = JaversBuilder.javers().build();
Holder first = new Holder();
first.a = new B0();
Holder second = new Holder();
second.a = new B1();
Diff diff = javers.compare(first, second);
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels