IBM Support

PI68411: REFERENCED INTERFACES GENERATE INCORRECT OPERATION SIGNATURE IN TEST COMPONENT

A fix is available

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Project comprises of a single class with a port. The port has
    two contract interfaces: one provided with a single function and
    one required with a single function.
    When these interfaces are located in a referenced package, the
    test component does not generate the incoming interface
    operation signature correctly (missing argument) which causes
    compiler error on building the test context.
    When the interfaces are located in a local unit package, the
    test component generates the incoming interface operation
    correctly with an argument, and the test context builds
    successfully.
    
    STEPS TO REPRODUCE
    
    1) Create a new TestProfile project
    2) Add a class with a single port
    3) Create a new package called InterfacePkg
    4) Add two interfaces in the InterfacePkg:
    Interface IIn with an operation called setIn and add a single
    integer argument
    Interface IOut with an operation called setOut and add a single
    interger argument
    5) In the OS file explorer move the InterfacePkg.sbs file
    outside of the project structure
    6) In Rhapsody, add the package to the project as reference,
    overwrite the existing InterfacePkg
    7) Set the contract of the port to Provided = IIn and Required =
    IOut
    8) Right click the class in the browser and select "Create Test
    Architecture"
    9) Expand the test architecture and right-click the test
    context, select Update and Build
    
    SYMPTOM
    
    Cannot instantiate abstract class due to following members 'void
    IOut::setOut(int)' is abstract
    
    WORKAROUND
    
    Add an argument to the setOut operation generated in the Test
    Component of the Test Architecture and rebuild.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Rhapsody users                                               *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * Referenced interfaces generate incorrect operation signature *
    * in test component                                            *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • Fixed in Rhapsody 8.2 - This defect has been fixed: When
    creating a new test architecture TestConductor will create a
    correct test component for the referenced interface.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI68411

  • Reported component name

    TLOGIC RHAPSODY

  • Reported component ID

    5724V74RP

  • Reported release

    814

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-08-31

  • Closed date

    2016-12-05

  • Last modified date

    2016-12-05

  • 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

  • R814 PSN

       UP



Document information

More support for: Rational Rhapsody

Software version: 8.1.4

Reference #: PI68411

Modified date: 05 December 2016