Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325984 - xtext fails parsing when using FeatureMaps
Summary: xtext fails parsing when using FeatureMaps
Status: CLOSED DUPLICATE of bug 325196
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 1.0.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: M2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-22 11:59 EDT by Julien Bigot CLA
Modified: 2010-09-23 05:17 EDT (History)
1 user (show)

See Also:
sebastian.zarnekow: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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