Bug 528160 - [codegen] query operation signature incorrect in implementation
Summary: [codegen] query operation signature incorrect in implementation
Status: NEW
Alias: None
Product: Papyrus-rt
Classification: Modeling
Component: codegen (show other bugs)
Version: 1.0.0   Edit
Hardware: PC Mac OS X
: P3 normal
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-05 10:25 EST by Ernesto Posse CLA
Modified: 2017-12-05 12:16 EST (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 Ernesto Posse CLA 2017-12-05 10:25:41 EST
If an operation in a capsule or passive class is declared as "query", the declaration in the header correctly appends "const" to the signature, but not to the implementation, causing a compilation failure. For example, an operation "Operation1" with isQuery == true and an Integer return parameter, generates the following in the header:

int Operation1() constl

but in the .cc:

int Class1::Operation1()
{
// ...
}

where it should be

int Class1::Operation1() const
{
// ...
}