APAR status
Closed as Permanent restriction.
Error description
There are various problems when selecting variants using Rhapsody 7.6. The customer would like to know how to insert a typedef into the file 'CVariation.h', which corresponds to the selected variant. At the same time they would like to be able to insert the same typedef into the file 'CVariationPkg.h' as a Dummy Variable that can be generated. In the attached sample project, there are four variant classes, 'CVariant_A' to 'CVariant_D', where A and B are directly in the Variation package, and C and D are in a sub-package. If the variant B is selected, then the typedef is generated and the project works. If the variant A is selected, then the generated typedef leads to a translation error. If C or D is selected, then no forward declaration can be selected at all. However this problem can be avoided by creating dependencies to insert forward declarations manually. The customer would like to know why it is necessary for C and D to create these dependencies, and also why the generated typedef for A causes a problem.
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: * **************************************************************** * PROBLEM DESCRIPTION: * **************************************************************** * RECOMMENDATION: * **************************************************************** Typedef is generated incorrectly when working with variants in Rhapsody.
Problem conclusion
In this case, the incorrect code generation was due to a corrupt source artifact in the model. When the problematic file is deleted, the code is generated as expected.
Temporary fix
Comments
APAR Information
APAR number
PM45436
Reported component name
TLOGIC RHAPSODY
Reported component ID
5724V74RP
Reported release
753
Status
CLOSED PRS
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2011-08-10
Closed date
2012-01-09
Last modified date
2012-01-09
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Applicable component levels
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS7P9W","label":"Rational Rhapsody"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.5.3","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]
Document Information
Modified date:
09 January 2012