Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363002 - Importing xbase without ecore causes incorrect validation messages
Summary: Importing xbase without ecore causes incorrect validation messages
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: M4   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-06 16:04 EST by Kai Kreuzer CLA
Modified: 2017-09-19 17:08 EDT (History)
1 user (show)

See Also:
sebastian.zarnekow: juno+


Attachments

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