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

Bug 345303

Summary: Error unmarshalling to given type when inheritance is used
Product: z_Archived Reporter: Denise Smith <denise.mahar>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipselink.oxm-inbox
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Proposed changes and test none

Description Denise Smith CLA 2011-05-10 13:18:06 EDT
If class B extends class A and the xml is something with xsi:type = classB when we unmarshal like this unmarshal(source, classA.class)  the resulting object is of class B as expected however the attributes from class B are non populated.  The attributes inherited from Class A are populated correctly.
Comment 1 Denise Smith CLA 2011-05-10 14:42:08 EDT
Created attachment 195258 [details]
Proposed changes and test
Comment 2 Denise Smith CLA 2011-05-10 14:49:40 EDT
Checked in attached patch.
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:20:00 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink