IBM Support

PM54435: Set ordering of nested class elements for code generation


You can track all active APARs for this component.

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
    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


  • 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
    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


  • Reported component name


  • Reported component ID


  • Reported release


  • Status


  • PE




  • Special Attention


  • Submitted date


  • Closed date


  • Last modified date


  • 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

Document information

More support for: Rational Software Architect RealTime Edition

Software version: 8.0.3

Reference #: PM54435

Modified date: 17 October 2012

Translate this page: