1 Reply Latest reply on Jan 25, 2008 12:45 PM by tfennelly

    Small addition to JAXBIntroductions: Support for @XmlTransie

    andymalakov

      Hello All,

      We had a problem mapping subclasses of java.lang.Exception in XML using JAXB 2.1. In particular, JAXB tried to map Exception.stackTrace field and failed with the following error: IllegalAnnotationsException: "java.lang.StackTraceElement does not have a no-arg default constructor".

      Luckily JBoss JAXBIntroductions provided us a workaround. Once I added support for @XmlTransient annotation I was able to annotate Exception with @XmlTransient in JaxbIntros meta data. (Another way may be annotating Throwable.stackTrace).

      Can I contribute to JaxbIntros project by submitting @XmlTransient support (XmlTransientHandler and XmlTransientIntro) into SVN?

      Best Regards,
      Andy Malakov