IBM Support

PI11688: Using CPP_CG::Type::ImplementationName results in the incorrect code generated for C++ in IBM Rational Rhapsody

A fix is available

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Attempting to set a different implementation name using the
    property CPP_CG::Type::ImplementationName results in the
    incorrect code being generated.
    
    
    
    SYMPTOM
    
    
    When you create a type in Rhapsody C++ and set a different
    implementation name to appear in the code using the property
    CPP_CG::Type::ImplementationName the incorrect code is
    generated, with the model name being used in places.
    
    
    Results:
    
    
    The generated code contains references to the model name of the
    Type, and as such will give errors when you attempt to compile.
    
    
    Steps To reproduce:
    
    
    1. Create a new model in Rhapsody.
    2. Create a Class.
    3. Add a new Type to the Default package.
    4. Create an Attribute for the created Class of the newly
    created Type.
    5. Generate the code.
    
    
    
    WORKAROUND
    
    
    Instead of using the property CPP_CG::Type::ImplementationName
    you can change the model name of the type using labels, which
    can be set in the features dialog in the General tab by
    selecting the "L" button next to the name field. You will also
    have to turn on Label Mode by selecting View -> Label Mode.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Using CPP_CG::Type::ImplementationName results in the
    incorrect code generated for C++ in IBM Rational Rhapsody
    

Problem conclusion

  • Fixed in 8.1
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI11688

  • Reported component name

    TLOGIC RHAPSODY

  • Reported component ID

    5724V74RP

  • Reported release

    805

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-02-13

  • Closed date

    2014-06-02

  • Last modified date

    2014-06-02

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    TLOGIC RHAPSODY

  • Fixed component ID

    5724V74RP

Applicable component levels

  • R805 PSN

       UP



Document information

More support for: Rational Rhapsody

Software version: 8.0.5

Reference #: PI11688

Modified date: 02 June 2014