Bug 581085 - ModelAssembler merges fragment elements in reverse order
Summary: ModelAssembler merges fragment elements in reverse order
Status: NEW
Alias: None
Product: Incubator
Classification: Eclipse Project
Component: e4 (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: E4 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-21 08:21 EST by Martin Bluehweis CLA
Modified: 2022-11-21 08:21 EST (History)
0 users

See Also:


Attachments
Simple test case (1.40 KB, text/x-java)
2022-11-21 08:21 EST, Martin Bluehweis CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Bluehweis CLA 2022-11-21 08:21:05 EST
Created attachment 288845 [details]
Simple test case

added a simple snippet to reproduce (could be used as a unittest template)

didn't try, but looking into the code I think the bug is in ModelUtils.mergeList where the insert-index is not incremented in the for loop (don't use the index parameter for that).