APAR status
Closed as Permanent restriction.
Error description
Tied to pmr : 33081,220,616 Applying property UseNameSpace on the class level does not generate 'using namespace X' Steps to reproduce : 1. Create a new package X. 2. Check the DefineNameSpace property in CPP_CG:Package. 3. Create another new package Y. 4. Create a class Z in package Y. 5. Check the UseNameSpace property for class Z in CPP_CG:Dependecy. 6. Create a Usage Dependency between class Z and package X. 7. Generate code and check in Z.cpp that it has deceleration 'namespace X' instead of 'using namespace X'. Workaround. Either set the property directly on the dependency instead of the class OR uncheck and check the property for the property in the dependency
Local fix
Workaround. Either set the property directly on the dependency instead of the class OR uncheck and check the property for the property in the dependency
Problem summary
If you apply the property CPP_CG::Dependency::UseNameSpace at the class level, the generated code does not contain "using namespace X".
Problem conclusion
There are no plans to change this behavior. The property CPP_CG::Dependency::UseNameSpace is designed to be applied to dependencies.
Temporary fix
Comments
APAR Information
APAR number
PK93248
Reported component name
TLOGIC RHAPSODY
Reported component ID
5724V74RP
Reported release
750
Status
CLOSED PRS
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2009-08-06
Closed date
2010-03-24
Last modified date
2010-03-24
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","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]
Document Information
Modified date:
24 March 2010