Community
Participate
Working Groups
We need to support @XmlTransient on a class so that we can correctly support validation for @XmlValue. If an @XmlValue attribute mapping exists on a class, the class cannot extend another XML-bound type.
Added support for XmlTransient and inherited attributes on an XmlType that extends an XmlTransient. This support might change after getting some feedback from Blaise and the JAXB reference implementation developers.
Blaise's feedback has confirmed that my implementation is correct: We have looked at bug 336975 further and realize that is a MOXy bug and not a spec issue. When a XmlAccessorType is specified on a super type, it should be inherited by the sub types that have not set there own XmlAccessType. I am still not 100% convinced that according to the spec that @XmlAccessType and @XmlTransient are technically compatible, but we will try to have the same behaviour as the RI on this point. -Blaise