Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366424 - JAXBBinder fails to unwrap JAXBElement on updateXML/getXMLNode calls.
Summary: JAXBBinder fails to unwrap JAXBElement on updateXML/getXMLNode calls.
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-12-12 10:42 EST by Matt MacIvor CLA
Modified: 2022-06-09 10:25 EDT (History)
0 users

See Also:


Attachments
Proposed fix and test case (6.44 KB, patch)
2011-12-12 14:22 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-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