Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 339235 - Unmarshal of root with xsi:nil should return null
Summary: Unmarshal of root with xsi:nil should return null
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: 2011-03-08 10:42 EST by Matt MacIvor CLA
Modified: 2022-06-09 10:09 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt MacIvor CLA 2011-03-08 10:42:27 EST
When unmarshalling an empty root element (that maps to a complex type) with xsi:nil, EclipseLink currently returns a JAXBElement wrapping an empty instance of the associated class. 

This should instead return the JAXBElement wrapping null with nil being set to true.
Comment 1 Matt MacIvor CLA 2011-03-11 10:46:41 EST
Fix checked in to SVN
Reviewed by Blaise Doughan
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:09:38 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink