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

Bug 366424

Summary: JAXBBinder fails to unwrap JAXBElement on updateXML/getXMLNode calls.
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    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed fix and test case none

Description Matt MacIvor CLA 2011-12-12 10:42:28 EST
Calls to updateXML and getXMLNode on JAXBBinder fail when passed a JAXBElement as the parameter. This is because the getXMLNode call doesn't unwrap the nested JAXB object to find it in the cache. 

getXMLNode should check for JAXBElement and unwrap the object before calling into the wrapped XMLBinder.
Comment 1 Matt MacIvor CLA 2011-12-12 14:22:40 EST
Created attachment 208279 [details]
Proposed fix and test case
Comment 2 Matt MacIvor CLA 2011-12-13 10:25:37 EST
Patch checked in to Trunk stream in SVN
Reviewed by Blaise Doughan
Comment 3 Matt MacIvor CLA 2011-12-20 09:58:54 EST
Reopening to track backport to 2.3.3
Comment 4 Matt MacIvor CLA 2012-01-04 11:28:55 EST
Backported to 2.3
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:25:02 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink