IBM Support

PK91564: CORBA CODE GENERATION INCORRECT WITH CODE GENERATOR SET TO ADVANCED. 'THROWS' IS GENERATED AS OPPOSED TO 'RAISES'.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Operation:ThrowExceptions' set to 'SystemException'. In
    the IDL this generates as 'raises( SystemException)'. Moving
    this model into Rhapsody 7.4 using the 'Advanced' code generator
    the IDL code is 'throws( SystemException)'. The only way to have
    'raises( SystemException)' generated is to change the code
    generator to 'Classic'.
    
    Generating the same code using Rhapsody 7.5 produces the same
    affect. However, 'Classic' is not available in Rhapsody 7.5.
    
    To reproduce:
    
    Create a CORBA model in Rhapsody 7.1 and generate code.
    Open this model using Rhapsody 7.4 and generate code. Using the
    default code generator setting of 'Advanced' 'Throws' will be
    generated as opposed to 'Raises'.
    

Local fix

  • Set the Code Generator to "Classic" when using Rhapsody
    versions 7.2, 7.3, and 7.4 This will produce the correct code
    generation.
    
    There is no workaround for Rhapsody 7.5.
    

Problem summary

  • Code Generation: When the value of the property
    CORBA::Operation::ThrowExceptions is set to "System
    Exception", the generated IDL code contains "throws(
    SystemException)" rather than "raises( SystemException)".
    

Problem conclusion

  • Fixed in version 7.5.0.1
    

Temporary fix

Comments

APAR Information

  • APAR number

    PK91564

  • Reported component name

    TLOGIC RHAPSODY

  • Reported component ID

    5724V74RP

  • Reported release

    740

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2009-07-16

  • Closed date

    2009-12-07

  • Last modified date

    2009-12-07

  • 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

  • R740 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.4","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
07 December 2009