Re: [jackson-user] Inheritance and circular references

2018-12-09 Thread Tatu Saloranta
Simplest answer I can give is that you should avoid ever using generic type values as root value (immediate object you give to writeValue() / readValue()). Generic types are fine everywhere else reachable through POJO properties, but at root level Java Type Erasure causes problems. In this case fo

[jackson-user] Inheritance and circular references

2018-11-27 Thread devg2209
Hi, I am using jackson for serialization/deserialization I have no problem with - simple objects - objects with circular reference and no inheritance. But when the object implies inheritance and circular reference, the deserialization fails. For example : I have an abstract superclass A ,whi