Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348666 - regression with unordered groups
Summary: regression with unordered groups
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.0.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: SR1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-07 20:51 EDT by Moritz Eysholdt CLA
Modified: 2017-09-19 17:04 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 Moritz Eysholdt CLA 2011-06-07 20:51:02 EDT
the rule 

---
DAlarmIndication:
	description=DESC? ("<" annotations+=DAnnotation+ ">")? 
	status=DStatus? severity=DSeverity "alarm" name=ID ("implements" superAlarm=[DAlarmIndication|FQN])?
	"{"
		(("format" format=STRING)? &
		 ("probableCauseFormat" probableCauseFormat=STRING)? &
		 ("recommendedAction" recommendedAction=[DAction|FQN])? &
		 ("correlatedAlarm" correlated+=[DAlarmIndication|FQN])*) 
		attributes+=DEventAttribute* 
	"}";
---

lets antlr raise the following warning "Decision can match input such as "'correlatedAlarm' RULE_ID" using multiple alternatives: 1, 2".

Interestingly, this warning only shows up for contentassist-parser, but not for the runtime-parser.

This is a regression since it has been working flawlessly with Xtext 1.0.2

Workaround: enable backtracking for XtextAntlrUiGeneratorFragment.

I thought I already saw a bug report for this issue, but I can't find it anymore.
Comment 1 Sebastian Zarnekow CLA 2011-07-25 18:41:41 EDT
Pushed to master.
Comment 2 Karsten Thoms CLA 2017-09-19 16:53:30 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 17:04:20 EDT
Closing all bugs that were set to RESOLVED before Neon.0