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

Bug 348666

Summary: regression with unordered groups
Product: [Modeling] TMF Reporter: Moritz Eysholdt <moritz.eysholdt>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sebastian.zarnekow
Version: 2.0.0Flags: sebastian.zarnekow: indigo+
Target Milestone: SR1   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

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