When Option object includes an object extending abstract class or implementing an interface, then VavrModule serializes only getters or fields from abstract class.
For example
abstract class A { public int i; }
class B extends A { public double d; }
Result of serialization Option<A> o = Option.of(new B()) will result in serialization of only field i without field d.
When Option object includes an object extending abstract class or implementing an interface, then VavrModule serializes only getters or fields from abstract class.
For example
abstract class A { public int i; }
class B extends A { public double d; }
Result of serialization
Option<A> o = Option.of(new B())
will result in serialization of only fieldi
without fieldd
.