I am sorry but explanation alone is not enough: a full reproduction would be needed. You may want to file a bug against JAXB annotations module.
-+ Tatu +- On Tue, Nov 17, 2020 at 2:59 AM mkama...@gmail.com <mkamalo...@gmail.com> wrote: > 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. > > > -- > You received this message because you are subscribed to the Google Groups > "jackson-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jackson-user+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jackson-user/610ab7e2-4508-4f98-acc1-55a8af1981e7n%40googlegroups.com > <https://groups.google.com/d/msgid/jackson-user/610ab7e2-4508-4f98-acc1-55a8af1981e7n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "jackson-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to jackson-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jackson-user/CAGrxA27TpJxJLFKRLfVdTTS6BtxyCoTTuV_%2BSWPeO5eHhb2aFw%40mail.gmail.com.