IBM Support

PI30528: After UML-to-Java transformation, generic instances are generated as 'Object' types

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • ThreadLocal'
    
    6. Set the relationship's 'Actual Parameter' to the other class
    created in Step 3
    
    7. Add a 'Composition Association' relationship from the class
    created in Step 3 to the 'JavaGenericInstance' class
    
    8. Add a UML-to-Java transformation configuration (TC)
    
    9. Run the TC and check the code
    
    RESULT: The code appears correctly as 'private
    ThreadLocal?Class1? myInstance;'
    
    10. Close ? reopen RSA
    
    11. Run the TC again and examine the code
    
    Expected Result: The code appears as it does after Step 9.
    
    Actual Result: The code appears incorrectly as 'private Object
    myInstance;'.
    
    The workaround is to run the UML-to-Java a second time after
    reopening RSA.  Doing so will overwrite the incorrect code with
    the correct code.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * -                                                            *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * UML-to-Java transformation generates of Object type instead  *
    * of generic instance after reopening the project.             *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • UML-to-Java transformation issue which lead to generation of
    Object type instead of generic instance type has been fixed.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI30528

  • Reported component name

    RATL SW ARCHITE

  • Reported component ID

    5725A3000

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-11-28

  • Closed date

    2015-06-05

  • Last modified date

    2015-06-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

    RATL SW ARCHITE

  • Fixed component ID

    5725A3000

Applicable component levels

  • R900 PSY

       UP

  • R910 PSY

       UP

  • R911 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSYK2S","label":"Rational Software Architect Designer"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"900","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 October 2021