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

Bug 363217

Summary: [Validation] Incorrect validation against @XmlList
Product: [WebTools] Dali JPA Tools Reporter: Nan Li <nan.n.li>
Component: JAXBAssignee: 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:

Description Nan Li CLA 2011-11-08 13:50:52 EST
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
Comment 1 Nan Li CLA 2011-11-08 14:06:39 EST
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.
Comment 2 Paul Fullbright CLA 2011-11-11 11:42:32 EST
Resolved in 3.1 RC1
Comment 3 Jolene Moffitt CLA 2011-12-05 12:08:52 EST
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