Bug 496342 - [cg] Support Complete OCL added properties.
Summary: [cg] Support Complete OCL added properties.
Status: NEW
Alias: None
Product: QVTd
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-18 07:06 EDT by Ed Willink CLA
Modified: 2016-06-18 07:08 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Willink CLA 2016-06-18 07:06:02 EDT
If an additional property such as OclElement::ast is added by Complete OCL and not reified by a generated Ecore model, the CG fails.

A PropertCallExp incorrectly uses the normal explicit property access; should go bang at run-time.

A PropertyAssignment uses CGPropertyAssignment that generates bad Java code; a missing property controller.

Bugs:

a) Bad PropertyCallExp not diagnosed.

b) Bad PropertyAssignment not diagnosed.

Fix: need a per-additional-property map to provide the per-object to value storage.
Comment 1 Ed Willink CLA 2016-06-18 07:08:49 EDT
OCL does not support assignment so supporting read-only extras is pointless.

Therefore a QVTd bug.