Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331691 - If @XmlElement(nillable=true) marshal null representation should be xsi:nil
Summary: If @XmlElement(nillable=true) marshal null representation should be xsi:nil
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Matt MacIvor CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-02 11:31 EST by Blaise Doughan CLA
Modified: 2022-06-09 10:05 EDT (History)
1 user (show)

See Also:


Attachments
Proposed Fix (1.95 KB, patch)
2010-12-03 13:38 EST, Matt MacIvor CLA
no flags Details | Diff

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