| Summary: | Problem with XmlAdapter<String, List<Test>> | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Blaise Doughan <blaise.doughan> | ||||||||
| Component: | Eclipselink | Assignee: | Blaise Doughan <blaise.doughan> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | ||||||||||
| Version: | unspecified | ||||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows XP | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
Created attachment 181134 [details]
MOXy - Fix
Created attachment 181299 [details]
MOXy - Test Cases
Created attachment 181300 [details]
MOXy - Fix
Fix checked into trunk at rev: 8381 Fix by: Matt MacIvor Reviewed and committed by: Blaise Doughan Fixed as per above comments. The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |
For the following model class: import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; @XmlRootElement public class Root { private List<Test> tests = new ArrayList<Test>(); @XmlJavaTypeAdapter(ListXmlAdapter.class) public List<Test> getTests() { return tests; } public void setTests(List<Test> tests) { this.tests = tests; } } We are creating an XMLCompositeObjectMapping for the tests property instead of an XMLDirectMapping.