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

Bug 319989

Summary: select() doesn't preserve the collection type
Product: [Modeling] Epsilon Reporter: Dimitris Kolovos <dkolovos>
Component: CoreAssignee: Dimitris Kolovos <dkolovos>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Dimitris Kolovos CLA 2010-07-15 10:04:19 EDT
select() should preserve the type of the collection it is executed on. For instance OrderedSet{1,2,3}.select(x|true) should return OrderedSet{1,2,3} but at the moment returns Sequence{1,2,3}
Comment 1 Dimitris Kolovos CLA 2010-07-20 14:25:49 EDT
According to the OCL spec, if the source collection is ordered (i.e. Sequence or OrderedSet) select should return a Sequence, otherwise a Bag. Fixed in the SVN.
Comment 2 Dimitris Kolovos CLA 2010-11-25 08:18:03 EST
Fixed in 0.9.0.