Community
Participate
Working Groups
Use LinkedHashMap internally instead of HashMap for oaw::Set in order to preserve insertion order when transforming lists to sets via the toSet operation. See http://www.openarchitectureware.org/forum/viewtopic.php?forum=2&showtopic=6823 for a more detailed discussion of the topic.
I have modified the test for CollectionTypeImpl's toSet() operation and modified CollectionTypeImpl on oAW 4.2 branch. To do: Apply the same behaviour to M2T.
Collection.toSet uses a LinkedHashSet in m2t. However, I cannot find any test for this behaviour, I'll add a patch with some tests. Should union and intersect preserve the order of the elements as well?
Created attachment 127998 [details] Tests and some fixes for intersect, union, without, SetType.newInstance
patch applied
Bug resolved before Xpand 1.2 release date => Closing