Community
Participate
Working Groups
From the JAXB 2.2 spec (8.9.2.2) - If the property or field type is a parameterized collection type, then the size of the @XmlElements.value() must be 1. - This annotation can be used only with the following annotations: @XmlIDREF, @XmlElementWrapper, @XmlJavaTypeAdapter. - If @XmlIDREF is specified, then each @XmlElement.type() must contain a JavaBean property/field annotated with @XmlID. Some investigation is needed to see whether validation and content assist for the individual @XmlElement annotations within @XmlElements differ significantly from validation and content assist for an @XmlElement by itself.
The first mapping constraint (If the property or field type is a parameterized collection type, then the size of the @XmlElements.value() must be 1.) is pretty much just wrong. The rest has been committed to head.