Community
Participate
Working Groups
If a baseType has a property annotated with @XmlAnyElement, then no other sub type in the inheritance hierarchy rooted at baseType can contain a property annotated with @XmlAnyElement. We can do this validation more completely once we have XmlElementRef and XmlElementRefs mapping annotation support. @XmlAnyElement can be a standalone mapping annotation or it can be used along with XmlElementRef/XmlElementRefs
Also from the JAXB 2.2 spec (8.9.6.2) - The only other JAXB annotations allowed with @XmlAnyElement are: @XmlElementRefs. Further investigation is needed to determine how validation and content assist differ from @XmlElementRefs as an annotation by itself.
I believe that an @XmlAnyElement must also correspond to a wildcard (<xsd:any .. >), but this bears further investigation.
(In reply to comment #2) > I believe that an @XmlAnyElement must also correspond to a wildcard (<xsd:any > .. >), but this bears further investigation. This is incorrect. Work for this is completed for 3.1 M3