Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363217 - [Validation] Incorrect validation against @XmlList
Summary: [Validation] Incorrect validation against @XmlList
Status: VERIFIED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JAXB (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.1 RC1   Edit
Assignee: Paul Fullbright CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-08 13:50 EST by Nan Li CLA
Modified: 2011-12-05 12:08 EST (History)
2 users (show)

See Also:


Attachments

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