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

Bug 338132

Summary: JAXBElement with null value omits xsi:nil attribute for simple values
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:
Attachments:
Description Flags
Proposed fix and test case none

Description Matt MacIvor CLA 2011-02-24 13:16:13 EST
This only occurs when using TypeMappingInfos. This is because the null value gets wrapped in a generated wrapper class for that TMI instead of treated as a null simple value.

For null values, the wrapper class shouldn't be instantiated.
Comment 1 Matt MacIvor CLA 2011-02-24 14:07:52 EST
Created attachment 189728 [details]
Proposed fix and test case
Comment 2 Matt MacIvor CLA 2011-02-24 14:39:02 EST
Attached patch checked in to SVN
Reviewed by Blaise Doughan
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:03:49 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink