Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 338132 - JAXBElement with null value omits xsi:nil attribute for simple values
Summary: JAXBElement with null value omits xsi:nil attribute for simple values
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-02-24 13:16 EST by Matt MacIvor CLA
Modified: 2022-06-09 10:03 EDT (History)
0 users

See Also:


Attachments
Proposed fix and test case (6.26 KB, patch)
2011-02-24 14:07 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 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