IBM Support

PM89160: Different code generated for read-only units.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • GeneratedCodeInBrowser' property is set to true.
    
    It is observed that when the package (Default) is not read-only,
    the following code is generated for the class (class_0):
    
        //## auto_generated
        type_1 getAttribute_0() const;
    
        //## auto_generated
        void setAttribute_0(type_1 p_attribute_0);
    
    
    After initial code generation, when the package (Default) is
    made read-only, subsequent code generation generates the
    following for the class (class_0):
    
        //## operation getAttribute_0() const
        type_1* getAttribute_0() const;
    
        //## operation setAttribute_0(type_1)
        void setAttribute_0(const type_1? p_attribute_0);
    
    
    Clearly there is a difference in code generation with respect to
    the operation return type and type of the attribute. Also
    observed is the difference in the generated comments. Comments
    can be neglected, but different is code is not a correct
    behavior.
    
    The erroneous behavior looks like a regression from 7.6.1.3 and
    could be related to the use of 'GeneratedCodeInBrowser' and/or
    'Source Artifacts'.
    
    Also attached is a video capture (Recording.fbr) for your
    reference.
    
    
    Workaround:
    
    There is no known workaround at this time.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Different code generated for read-only units.
    

Problem conclusion

  • Fixed in Sagittarius
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM89160

  • Reported component name

    TLOGIC RHAPSODY

  • Reported component ID

    5724V74RP

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-05-16

  • Closed date

    2013-06-20

  • Last modified date

    2013-06-20

  • 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

  • R800 PSN

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS7P9W","label":"Rational Rhapsody"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
02 November 2021