IBM Support

PI60159: JAVA-TO-UML TRANSFORMATION RESULTS IN LITERAL INTEGERS' "TYPE" SET TO "BOOLEAN"

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • In IBM Rational Software Architect (RSA), if you run a
    Java-to-UML transformation with Java code that contains literal
    integers, these literal integers will have a "Properties >
    Advanced >Type" value that is set to "Boolean" instead of
    "Integer".
    
    The following steps reproduce the problem:
    
    1. Create Java code containing enumerations, enumeration
    literals, and literal integers with integer values.
    
    2. Create a UML project & UML model
    
    3. Add a Java-to-UML transformation
    
    4. Run the transformation and examine the model
    
    Expected Result: The literal integers have "Properties >
    Advanced > Type" set to "Integer"
    Actual Result: The literal integers have "Properties > Advanced
    > Type" set to "Boolean".
    

Local fix

  • The workaround is to manually reset the "Properties > Advanced >
    Type" to "Integer" for each literal integer after each
    Java-to-UML transformation.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * -                                                            *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * When Java to UML transformation is run, the generated slot's *
    * Literal type was set as UML Primitive type Boolean even for  *
    * the int values.                                              *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • When Java to UML transformation is run, the generated slot's
    Literal type was set as UML Primitive type Boolean even for the
    int values.
    Now, the behavior is adjusted such that literal type will be set
    to UML Primitive type Integer for int values.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI60159

  • Reported component name

    RATL SW ARCHITE

  • Reported component ID

    5725A3000

  • Reported release

    851

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-04-04

  • Closed date

    2016-06-10

  • Last modified date

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

    RATL SW ARCHITE

  • Fixed component ID

    5725A3000

Applicable component levels

  • R851 PSY

       UP

  • R900 PSY

       UP

  • R910 PSY

       UP

  • R911 PSY

       UP

  • R912 PSY

       UP

  • R950 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":"851","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 October 2021