Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349656 - Allow to create lists with duplicated references
Summary: Allow to create lists with duplicated references
Status: NEW
Alias: None
Product: MMT.ATL
Classification: Modeling
Component: Engine (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: mmt-atl.toolkit-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-17 04:28 EDT by Ralph Gerbig CLA
Modified: 2012-03-16 11:27 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Gerbig CLA 2011-06-17 04:28:39 EDT
Hi,

I have lists that allow duplicated references in my EMF model. However ATL seems to be not able to write duplicated references into these list. I have the following code:

list <- Sequence{ReferenceToA, ReferenceToA}

In my target model the list contains only one times ReferenceToA.
Comment 1 William Piers CLA 2012-03-16 11:27:37 EDT
Normally ATL shouldn't remove duplicates from the sequence. Could you check that the "list" reference handle duplicates ? 
i.e. that the "unique" property of the "list" EReference is set to false. By default, EMF sets it to true, which may lead to the issue you encounter.