Bug 444836 - Json jaxb binding for lists corrupts order
Summary: Json jaxb binding for lists corrupts order
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-23 09:05 EDT by Dominique Villard CLA
Modified: 2022-06-09 10:02 EDT (History)
1 user (show)

See Also:


Attachments
test case for bug: test marshal/unmarshal roundtrip (6.83 KB, application/octet-stream)
2014-09-23 09:06 EDT, Dominique Villard CLA
no flags Details
test case for bug: test marshal/unmarshal roundtrip with List (6.83 KB, application/octet-stream)
2014-09-23 09:32 EDT, Dominique Villard CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dominique Villard CLA 2014-09-23 09:05:23 EDT
In example below a class contains an ordered list of animals which inherit from Animal. The generated list gathers animals by class breaking ordering.

Rountrip test fails for json in code attached.
Comment 1 Dominique Villard CLA 2014-09-23 09:06:33 EDT
Created attachment 247298 [details]
test case for bug: test marshal/unmarshal roundtrip
Comment 2 Dominique Villard CLA 2014-09-23 09:30:45 EDT
The previous attachment works since it uses a Set.
UT fails when Set is replaced by List
Comment 3 Dominique Villard CLA 2014-09-23 09:32:30 EDT
Created attachment 247299 [details]
test case for bug: test marshal/unmarshal roundtrip with List
Comment 4 Lukas Jungmann CLA 2014-09-23 09:35:25 EDT
On which JDK (6?, 7?, 8?) with which EL/MOXy build? This could have been fixed already[1]

[1]: http://git.eclipse.org/c/eclipselink/eclipselink.runtime.git/commit/?id=296a69fe1d7b6ff5b50abb9a2dd2464436b7bf94
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:02:55 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink