Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 345303 - Error unmarshalling to given type when inheritance is used
Summary: Error unmarshalling to given type when inheritance is used
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-10 13:18 EDT by Denise Smith CLA
Modified: 2022-06-09 10:20 EDT (History)
1 user (show)

See Also:


Attachments
Proposed changes and test (3.62 KB, patch)
2011-05-10 14:42 EDT, Denise Smith CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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