Bug 248862 - EBoolean features without defaults are not serialised when false
Summary: EBoolean features without defaults are not serialised when false
Status: RESOLVED FIXED
Alias: None
Product: QVTo
Classification: Modeling
Component: Engine (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.0 M2   Edit
Assignee: Radomil Dvorak CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2008-09-28 07:23 EDT by Ed Willink CLA
Modified: 2009-05-05 06:27 EDT (History)
2 users (show)

See Also:


Attachments
Model corrections (7.38 KB, patch)
2008-09-28 07:30 EDT, Ed Willink CLA
dvorak.radek: iplog+
Details | Diff
Unit tests updates (6.18 KB, patch)
2008-09-28 07:38 EDT, Ed Willink CLA
dvorak.radek: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Willink CLA 2008-09-28 07:23:26 EDT
The following EBoolean attributes have no default. They must therefore be
marked as unsettable to ensure that EMF treats them as three-valued and so
ensures that both true and false values are serialised. [This is not a problem
for the EMOF-based models that use Boolean, which is three-valued.]

ImperativeOCL::AssignExp.isReset
QVTOperational::Helper.isQuery
QVTOperational::ImperativeOperation.isBlackBox
QVTOperational::MappingCallExp.isStrict
QVTOperational::Module.isBlackBox
QVTOperational::ResolveExp.isDeferred
QVTOperational::ResolveExp.isInverse
QVTOperational::ResolveExp.one
Comment 1 Ed Willink CLA 2008-09-28 07:30:51 EDT
Created attachment 113678 [details]
Model corrections

This patch can be applied independently of an upgrade to the latest QVT Declarative CVS that contains the Bug 248061 patch, but since both require
a Generate Model, both might as well be done at once.
Comment 2 Ed Willink CLA 2008-09-28 07:38:00 EDT
Created attachment 113679 [details]
Unit tests updates

Nearly forgot. The Model Consistency unit tests have to be updated to reflect new known Ecore/EMOF diferences.
Comment 3 Radomil Dvorak CLA 2008-09-30 18:11:54 EDT
Committed.