APAR status
Closed as suggestion for future release.
Error description
PMR Content: We cannot determine an official way to set the sequence of nested class elements for code generation. The problem is a header file that contains a reference to an enumerated type, however the enumerated type is not defined prior to its reference in the header file. For example: class MyClass { ... struct MyNestedStruct { MyNestedEnum theEnum; }; ... enum MyNestedEnum { A,B,C }; }; In RoseRT, the nested class panel allowed order of nested classes to be configured. Typically I would order nested classes first to last by type as follows: 1) Nested Enums 2) Nested Structs 3) Nested Classes Adding a dependence of MyNestedStruct on MyNestedEnum did not change order of generated code. There is capability to set order of generation for methods ? attributes under properties, but not for nested classes. Further debug shows that nested classes are generated in the order they are added to the model. A workaround for now is to cut MyNestedStruct out of the class, then paste it back in. This puts it at the bottom of the list. With this workaround, this is not a critical issue for us. The same functionality provided by RoseRT would make the concepts much easier to explain to users, however, so we would like this capability added if possible.
Local fix
Problem summary
Problem conclusion
Temporary fix
Comments
Thank you for your suggestion. IBM does not currently track enh ancement requests for Rational products through APARs, but your request has been recorded in our internal enhancement tracking s ystem. The user can use the Advanced tab in the Properties view and cli ck the browse button for the 'NestedClassifier' property. This o pens a dialog with up and down buttons which can be used for reo rdering the nested classifiers. And it seems the code generator generates the classifiers in the same order as they are defined in the model. So this item is rejected.
APAR Information
APAR number
PM54435
Reported component name
RSA REALTIME
Reported component ID
5724G4701
Reported release
803
Status
CLOSED SUG
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2011-12-15
Closed date
2012-10-04
Last modified date
2012-10-17
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":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SS5JSH","label":"Rational Software Architect RealTime Edition"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0.3","Edition":"","Line of Business":{"code":"","label":""}}]
Document Information
Modified date:
17 October 2012