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

Bug 318357

Summary: XMLDirectMapping fails to load data when unmapped elements exist in it's context
Product: z_Archived Reporter: Matt MacIvor <matt.macivor>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: raj.eclipselink
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed Fix and Updated Test Case
none
Updated Patch with new test case none

Description Matt MacIvor CLA 2010-06-29 13:19:57 EDT
If an XMLDirectMapping is mapped with a grouping element, when unmarshalling an XML instance document that contains unmapped elements in the context of that grouping element, the XMLDirectMapping won't correctly process the data.

This is being caused by an issue with resetting the XPathNode on an UnmarshalRecord to it's parent node when the node was never incremented to a child node for unmapped content.
Comment 1 Matt MacIvor CLA 2010-06-29 13:21:37 EDT
Created attachment 173021 [details]
Proposed Fix and Updated Test Case
Comment 2 Matt MacIvor CLA 2010-06-29 14:11:55 EDT
Created attachment 173030 [details]
Updated Patch with new test case
Comment 3 Matt MacIvor CLA 2010-06-29 14:22:34 EDT
Attached patch checked in to SVN in 2.1 and 2.2 streams.
Comment 4 Matt MacIvor CLA 2010-06-29 14:28:07 EDT
*** Bug 313545 has been marked as a duplicate of this bug. ***
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:14:21 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 6 Eclipse Webmaster CLA 2022-06-09 10:23:21 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink