Bug 412430 - grammars derived from Ecore handle mandatory boolean EAttributes wrong
Summary: grammars derived from Ecore handle mandatory boolean EAttributes wrong
Status: NEW
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.4.2   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-05 14:10 EDT by Moritz Eysholdt CLA
Modified: 2013-09-03 03:01 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Moritz Eysholdt CLA 2013-07-05 14:10:25 EDT
when creating an Xtext grammar form an existing Ecore model and this model contains an EAttribute of type EBoolean with lowerBound=1, then the generated assignment in the grammar is not optional. e.g. Foo: bar?='bar'; Therefore, it becomes impossible to create models with the attribute value set to false.

Expectation: assignment for boolean attributes should always be optional, e.g.: Foo: bar?='bar'?;