Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 336241 - XMLChoiceObjectMapping with XMLRoot fails to marshal if the qname of the root doesn't match a known field.
Summary: XMLChoiceObjectMapping with XMLRoot fails to marshal if the qname of the root...
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: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-03 10:19 EST by Matt MacIvor CLA
Modified: 2022-06-09 10:28 EDT (History)
0 users

See Also:


Attachments
Proposed Fix (6.75 KB, patch)
2011-02-03 16:13 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-03 10:19:14 EST
When an XMLChoiceCollectionMappingNodeValue marshals an XMLRoot it checks to see if the localname and namespace match the field represented by that nodevalue. If they don't, it doesn't marshal. This means that if the localname and namespace don't match *any* fields represented by this choice, then nothing will marshal. Instead if no fields match, eclipselink should marshal based on the type of the value wrapped in the root.
Comment 1 Matt MacIvor CLA 2011-02-03 16:13:52 EST
Created attachment 188276 [details]
Proposed Fix
Comment 2 Matt MacIvor CLA 2011-02-07 11:18:49 EST
Attached patch checked in to SVN
Reviewed by Blaise Doughan
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:16:04 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:28:56 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink