| Summary: | Simple Lists should use xsi:represents null when @XmlElement(nillable = true) | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Blaise Doughan <blaise.doughan> | ||||||
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | eclipselink.oxm-inbox | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Bug Depends on: | 334432 | ||||||||
| Bug Blocks: | 332770 | ||||||||
| Attachments: |
|
||||||||
Created attachment 187225 [details]
MOXy - Test Cases
Created attachment 187235 [details]
MOXy - Fix
Fix checked into trunk at: 8865 Code reviewed by: Matt MacIvor Fix Description: If the element is nillable set the null policy accordingly. The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |
When @XmlElement(nillable=true) is used on a List of simple types. The null policy should be set to xsi:nil represents null. @XmlElement(nillable=true) private List<String> strings; When the list contains 1 null entry should marshal to: <strings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>