PM74254: After UML-to-Java transformation, enumeration is not fully qualified in an operation's parameter list

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Operation reads:
    
    public void Operation2(Enumeration1 Parameter1)
    
    The 'The type Class1 must implement the inherited abstract
    method Interface1.Operation2(Interface2.Enumeration1)' error
    message appears in the Problems view.
    
    The workaround is to manually change the code with the following
    steps:
    
    1. Perform the transformation in order to generate the incorrect
    code
    
    
    2. Open the Problems view from Window ? Show View ? Other ?
    Problems
    
    
    3. Right click on the 'The type MyClass must implement the
    inherited abstract method
    IMyInterface.myOtherOperation(IMyOtherInterface.MyEnum)' error
    inside the 'Problems' view and select 'Quick Fix' from the
    context menu
    
    4. Select 'Add unimplemented methods' from the 'Quick Fix'
    dialog box and then press OK
    
    Result: An operation with the enumeration's path is now
    correctly qualified as public void
    Operation2(Package1.Interface2.Enumeration1 Parameter1) is
    added, but the incorrect code, namely public void
    Operation2(Enumeration1 Parameter1){} remains.
    
    5. Delete public void Operation2(Enumeration1 Parameter1){} and
    save the changes
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    In IBM Rational Software Architect 8.0.4.1, after running
    UML-to-Java transformation, conflicting java types are not
    fully qualified in an operation's parameter list - this
    leads to compilation errors in the generated code.
    

Problem conclusion

  • In IBM Rational Software Architect 8.0.4.2, after running
    UML-to-Java transformation, conflicting java types are now
    fully qualified in an operation's parameter list
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM74254

  • Reported component name

    RATL SW ARCHITE

  • Reported component ID

    5725A3000

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-10-03

  • Closed date

    2012-12-15

  • Last modified date

    2012-12-15

  • 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

  • R800 PSN

       UP



Rate this page:

(0 users)Average rating

Document information


More support for:

Rational Software Architect

Software version:

8.0

Reference #:

PM74254

Modified date:

2012-12-15

Translate my page

Machine Translation

Content navigation