IBM Support

PM30906: Adding an And-Line to inherited statechart causes compile errors

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • If you create a derived class that has a statechart with
    timeouts it will result in compile errors if you change the
    derived statechart to have an And-Line.
    
    1) Create a base class (BaseClass) with a statechart.  Add a
    superstate (baseSuperState) and a single substate (baseSubState)
    within it.  On the substate add timeout from/to itself, eg:
    tm(1000).
    
    2) Create a derived class (DerivedClass) and inherit from the
    class with the base statechart.
    
    3) Edit the derived statechart by added an AND line.  Change the
    Display Options to show all Labels (state names).
    4) Note that the inherited statechart gets a new name (eg:
    Default).
    
    5) Generate the code.
    
    6) Inspect the code.  Notice BaseClass.h has an attribute called
    baseSuperState_timeout.
    
    5) However, in DerivedClass.cpp, notice the use of a variable
    called Default_timeout.
    
    6) This is an undefined variable and the model will not compile.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    If you add an And Line to an inherited statechart with
    timeouts, the generated code does not compile.
    

Problem conclusion

  • Fixed in 7.5.3.1
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM30906

  • Reported component name

    TLOGIC RHAPSODY

  • Reported component ID

    5724V74RP

  • Reported release

    752

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-01-20

  • Closed date

    2011-04-10

  • Last modified date

    2011-04-10

  • 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

  • R752 PSN

       UP

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

Document Information

Modified date:
10 April 2011