| Summary: | select() doesn't preserve the collection type | ||
|---|---|---|---|
| Product: | [Modeling] Epsilon | Reporter: | Dimitris Kolovos <dkolovos> |
| Component: | Core | Assignee: | 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: | |||
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. Fixed in 0.9.0. |
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}