Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 348102

Summary: [Validation] @XmlElements validation and content assist
Product: [WebTools] Dali JPA Tools Reporter: Paul Fullbright <paul.fullbright>
Component: JAXBAssignee: Neil Hauge <neil.hauge>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: neil.hauge
Version: 3.0   
Target Milestone: 3.1 M2   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Paul Fullbright CLA 2011-06-02 12:58:09 EDT
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.
Comment 1 Paul Fullbright CLA 2011-08-18 16:58:49 EDT
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.