| Summary: | [Validation] Incorrect validation against @XmlList | ||
|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Nan Li <nan.n.li> |
| Component: | JAXB | Assignee: | Paul Fullbright <paul.fullbright> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | jolene.moffitt, neil.hauge |
| Version: | unspecified | ||
| Target Milestone: | 3.1 RC1 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
The class defined should be like
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class Emp {
@XmlList
@XmlIDREF <--
private List<Object> emps;
}
The error message described in the bug description should not be given with this case.
Resolved in 3.1 RC1 Verified in Build S-3.1.0-20111117042513 Verified when you define a class like above the error does not appear in the problems pane. See the link to view test steps for verification. http://wiki.eclipse.org/Dali_3.1_RC1 |
Build Identifier: I-3.1.0-20111103164637 Define a class like: @XmlRootElement @XmlAccessorType(XmlAccessType.FIELD) public class Emp { @XmlList private List<Object> emps; } An error message is given complaining In order to be mapped as XmlList, the type 'java.lang.Object' must be mapped to a non-list simple schema type. However, the configuration should work so the error message should not given with this case. Reproducible: Always