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

Bug 331691

Summary: If @XmlElement(nillable=true) marshal null representation should be xsi:nil
Product: z_Archived Reporter: Blaise Doughan <blaise.doughan>
Component: EclipselinkAssignee: Matt MacIvor <matt.macivor>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: matt.macivor
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed Fix none

Description Blaise Doughan CLA 2010-12-02 11:31:42 EST
For the following property:

    @XmlElement(nillable=true)
    protected String foo;


When the foo property is null we should marshal it as xsi:nil=true and not absent node.
Comment 1 Matt MacIvor CLA 2010-12-03 13:38:03 EST
Created attachment 184496 [details]
Proposed Fix
Comment 2 Matt MacIvor CLA 2010-12-03 14:47:59 EST
Attached patch checked in to SVN
Reviewed by Blaise Doughan
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:05:14 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink