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

Bug 363002

Summary: Importing xbase without ecore causes incorrect validation messages
Product: [Modeling] TMF Reporter: Kai Kreuzer <kai>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sebastian.zarnekow
Version: unspecifiedFlags: sebastian.zarnekow: juno+
Target Milestone: M4   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Kai Kreuzer CLA 2011-11-06 16:04:17 EST
Build Identifier: Xtext 2.1

The DSL definition:

grammar org.xtext.example.mydsl.MyDsl with org.eclipse.xtext.xbase.Xbase
generate myDsl "http://www.xtext.org/example/mydsl/MyDsl"
import "http://www.eclipse.org/xtext/xbase/Xbase"

Model:
	numbers+=Number*;

Number:
	INT
;

shows the validation error "Cannot inherit from DataType XSwitchExpression" on the Number rule.
The error disappears if one also adds

import "http://www.eclipse.org/emf/2002/Ecore"

to the import statements.


Reproducible: Always
Comment 1 Sebastian Zarnekow CLA 2011-11-09 12:01:55 EST
Pushed to master / maintenance
Comment 2 Karsten Thoms CLA 2017-09-19 16:57:39 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 17:08:55 EDT
Closing all bugs that were set to RESOLVED before Neon.0