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

Bug 339235

Summary: Unmarshal of root with xsi:nil should return null
Product: z_Archived Reporter: Matt MacIvor <matt.macivor>
Component: EclipselinkAssignee: Matt MacIvor <matt.macivor>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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