Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348102 - [Validation] @XmlElements validation and content assist
Summary: [Validation] @XmlElements validation and content assist
Status: RESOLVED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JAXB (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows Vista
: P3 enhancement (vote)
Target Milestone: 3.1 M2   Edit
Assignee: Neil Hauge CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-02 12:58 EDT by Paul Fullbright CLA
Modified: 2011-08-18 16:58 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.