Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357942 - Merging Issue with models generated in CDO-native mode
Summary: Merging Issue with models generated in CDO-native mode
Status: CLOSED FIXED
Alias: None
Product: EMFCompare
Classification: Modeling
Component: Core (show other bugs)
Version: 1.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: EMF Compare CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-16 09:52 EDT by Alex Lagarde CLA
Modified: 2012-05-22 09:48 EDT (History)
2 users (show)

See Also:
laurent.goubet: iplog+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Lagarde CLA 2011-09-16 09:52:35 EDT
When trying to merge models generated in CDO-native mode, EMF Compare fails to add newly created elements in the expected position in contained orderered references.

This comes from EFactory.eAdd(), wich should test

 if (manyValue instanceof List) and try to call add(position, value) before considering that manyValue is a colleciton and use add(value).
Comment 1 Laurent Goubet CLA 2011-09-26 09:11:01 EDT
Thanks, this has been fixed on 1.2 and master