Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 325984

Summary: xtext fails parsing when using FeatureMaps
Product: [Modeling] TMF Reporter: Julien Bigot <julien.bigot>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: sebastian.zarnekow
Version: 1.0.1Flags: sebastian.zarnekow: indigo+
Target Milestone: M2   
Hardware: All   
OS: All   
Whiteboard:

Description Julien Bigot CLA 2010-09-22 11:59:09 EDT
when parsing a model instance with some features stored in a featuremap, xtext fails with the following explaination: "org.eclipse.emf.ecore.util.FeatureMapUtil$FeatureEList cannot be cast to org.eclipse.emf.common.util.BasicEList"

This is due to line 103 of org.eclipse.xtext.parser.DefaultEcoreElementFactory that assumes that all list features inherit from BasicEList instead of only EList.
Comment 1 Sebastian Zarnekow CLA 2010-09-22 17:50:33 EDT

*** This bug has been marked as a duplicate of bug 325196 ***
Comment 2 Sebastian Zarnekow CLA 2010-09-23 05:17:00 EDT
Workaround: Override the DefaultEcoreElementFactory