Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346695 - [serializer] wrong context when delegating to super-language
Summary: [serializer] wrong context when delegating to super-language
Status: CLOSED DUPLICATE of bug 369175
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-20 10:44 EDT by Moritz Eysholdt CLA
Modified: 2012-05-09 04:46 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Moritz Eysholdt CLA 2011-05-20 10:44:30 EDT
for grammar

---
grammar SimpleUnorderedGroupsTestLanguage with UnorderedGroupsTestLanguage
 
DelegateModel returns Model: Model;
---

and 

---
grammar UnorderedGroupsTestLanguage with common.Terminals
 
Model: {Model} ...;
---

the SimpleUnorderedGroupsTestLanguageSyntacticSequencer delegates to UnorderedGroupsTestLanguageSyntacticSequencer for context DelegateModel.

However, in the UnorderedGroupsTestLanguageSyntacticSequencer this context is unknown.

This delegation happens because all AbstractElements within the constraint come from rule "Model".

Plan 1: don't delegate.
Plan 2: map the context.

The behavior can be observed in 
org.eclipse.xtext.parser.unorderedGroups.SerializerTest
Comment 1 Moritz Eysholdt CLA 2011-07-31 12:02:50 EDT
this bug blocks the tests in org.eclipse.xtext.parser.unorderedGroups from being migrated to the new serializer.
Comment 2 Moritz Eysholdt CLA 2011-10-19 04:53:24 EDT
see also bug 361355
Comment 3 Moritz Eysholdt CLA 2012-05-09 04:42:48 EDT
The problem with the wrong context as described initially is fixed (see bug 378325). This unveiled another issue with unordered groups that is already described here: bug 369175.
Comment 4 Moritz Eysholdt CLA 2012-05-09 04:46:28 EDT

*** This bug has been marked as a duplicate of bug 369175 ***