Fixes are available
APAR status
Closed as program error.
Error description
Summary: Code completion generates invalid code with qualifiers Description: In the code editing window for Rhapsody in C++, when writing a '.' after an instance or a reference to an instance of an object, Rhapsody will open up a code completion window that lets us choose an operation/attribute/relation. The issue is that if we choose a const operation, i.e. with a signature like this: void getValue() const the code completion forgets to strip away the const modifier which yields invalid C++ code. So if we have a class A like this: class A { void getValue() const { return 5; } }; and try to use the code editing window to use getValue on A, we will get the following invalid code suggestion. A instanceOfA; instanceOfA.getValue() const This is not valid in C++. so care should be taken to remove const/volatile modifiers when writing out the signature of the operation from the code completion window.
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: * **************************************************************** * PROBLEM DESCRIPTION: * **************************************************************** * RECOMMENDATION: * **************************************************************** IntelliVisor: Code completion generates invalid code with qualifiers (const)
Problem conclusion
Fixed in Scorpio
Temporary fix
Comments
APAR Information
APAR number
PM51801
Reported component name
TLOGIC RHAPSODY
Reported component ID
5724V74RP
Reported release
760
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2011-11-08
Closed date
2012-09-21
Last modified date
2012-09-21
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
TLOGIC RHAPSODY
Fixed component ID
5724V74RP
Applicable component levels
R760 PSN
UP
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS7P9W","label":"Rational Rhapsody"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.6","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]
Document Information
Modified date:
28 October 2021