IBM Support

PM54240: Rhapsody attribute visibility discrepancy

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as Permanent restriction.

Error description

  • Visibility, when it is set to protected, Rhapsody displays this
    property as being overridden. In fact it is displayed as
    overridden regardless of what value is chosen for the property.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When the default value of CPP_CG::Attribute::Visibility is
    set to protected, the visibility of attributes is generated
    as protected in the .h file even when the visibility of an
    attribute has been set to public in the Features window.
    

Problem conclusion

  • The visibility setting in the Features window refers to the
    overall accessibility, not to the specific code generated
    for the attribute. So in this case, the visibility of the
    attribute is generated as protected, but getters and setters
    are generated with public access to ensure public access to
    the value of the attribute.
    The value of the property CPP_CG::Attribute::Visibility, on
    the other hand, can be used to directly control the
    visibility of the attribute in the code.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM54240

  • Reported component name

    TLOGIC RHAPSODY

  • Reported component ID

    5724V74RP

  • Reported release

    760

  • Status

    CLOSED PRS

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-12-13

  • Closed date

    2012-03-19

  • Last modified date

    2012-03-19

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

Software version: 7.6

Reference #: PM54240

Modified date: 19 March 2012