Hi,
We use JaxbAnnotationIntrospector as a secondary interceptor. Also we use default typing as a property @class.
We found that if we have a property in class:
private Object value;
It works as expected for java.lang.Double and com.example.Person instances in"value" property.
But if we use following code:
@XmlElement(type=Object.class)
private Serializable value;
The solution stops working. I thing that parent validation realized in JaxbAnnotationIntrospector doesn't work well with Object for interfaces. Even if it is workarounded, I faced another problem that says that serialization for Double is not found.
Is it a bug?
Thanks, Marat Kamalov.