Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 319989 - select() doesn't preserve the collection type
Summary: select() doesn't preserve the collection type
Status: CLOSED FIXED
Alias: None
Product: Epsilon
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Dimitris Kolovos CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-15 10:04 EDT by Dimitris Kolovos CLA
Modified: 2012-02-06 10:59 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.