Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 349656

Summary: Allow to create lists with duplicated references
Product: [Modeling] MMT.ATL Reporter: Ralph Gerbig <ralphgerbig>
Component: EngineAssignee: mmt-atl.toolkit-inbox <mmt-atl.toolkit-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: william.piers
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

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.