Community
Participate
Working Groups
Build Identifier: 20100617-1415 library: org.eclipse.emf.ecore.change_2.5.0.v20100521-1846.jar package: org.eclipse.emf.ecore.change.util class: BasicChangeRecorder method: protected FeatureChange getFeatureChange(List<FeatureChange> featureChanges, EStructuralFeature eStructuralFeature) line: 243 -------------------- EObjectContainmentEList<FeatureChange> changes = (EObjectContainmentEList<FeatureChange>)featureChanges; -------------------- It casts the "List<FeatureChagne"> to "EObjectContainmentEList<FeatureChange>", but there is no code which need to use the EObjectContainmentEList. It is not necessary to do this casting. Reproducible: Always Steps to Reproduce: 1. Create some ecore model that has a containment reference. 2. Generate the code 3. By default, it will create the containment reference list using EObjectContainmentEList. 4. Try to create this list with other List type, which is not inherit from EObjectContainmentEList. 5. Try to change value of this list. The BasicChangeRecorder.getFeatureChange(..) will be called.
The fix is committed to CVS for 2.7.
The fix is available in the latest build for the stream.
The fixes are available in a published build.
Try again to resolve as fixed (and available in a build).
Oh, I guess I have to close them!