eclipse-qvto / org.eclipse.qvto

Eclipse Public License 2.0
0 stars 1 forks source link

Clarify the behavior of imperative iterators (Spec 8.2.2.7. ImperativeIterateExp) #771

Open eclipse-qvt-oml-bot opened 5 days ago

eclipse-qvt-oml-bot commented 5 days ago

| --- | --- | | Bugzilla Link | 425536 | | Status | NEW | | Importance | P3 normal | | Reported | Jan 13, 2014 05:14 EDT | | Modified | Jun 24, 2014 07:28 EDT | | Version | 3.4 | | Reporter | Sergey Boyko |

Description

Forked from Bug 424979.

The OMG Issue is 19177.

As cosequence:

eclipse-qvt-oml-bot commented 5 days ago

By Christopher Gerking on Jun 24, 2014 07:28

A related problem:

myEPackage.eClassifiers += myEClass;\ var allEClasses = myEPackage->eClassifiers[EClass];\ assert fatal (allEClasses->includes(myEClass));

The Bag resulting from the 'collectSelect' is empty, because myEPackage->eClassifiers produces a Bag(OrderedSet(EClassifier)). Therefore, the selection inside that Bag discovers only OrderedSet elements and no EClass elements.

The problem should be gone once 'collectSelect' and other imperative iterators flatten.