IBM Support

PM22656: Organize Imports option in code editor not automatically adding import statements

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Environment: Windows
    
    Product name: IBM? Rational? Business Developer
    
    Program Version    :  7.5.1.5
    Description.
    The Organize Imports option in code editor does not
    automatically add the import statements for top-level functions.
    
    
    Steps to reproduce:
    import commonpackage1.errorfunction;
    program test type BasicProgram {V60ExceptionCompatibility =
    yes,IncludeReferencedFunctions = yes}
    function main()
     try
            // EGL statements
    
            onException errorfunction();
            end
     end
    
    end
    
    a) Remove the import statement above.
    b) Select Organize Imports to add the applicable import
    statement once again but it does not do anything in this
    scenario.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Users affected:  RBD 7.5.1.x users who are using Organize
    Imports to add import statements for top-level functions.
    
    Problem description:  Organize Imports doesn't add import
    statements for top-level functions.  They remain unresolved.
    

Problem conclusion

  • Changed the visit(FunctionInvocation) method in
    EGLOrganizeImportsVisitor.java to add top-level functions
    that are unresolved to the unresolved types list.  They will
    be resolved later in EGLOrganizeImportsOperation.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM22656

  • Reported component name

    RATL BUS DEV

  • Reported component ID

    5724S5000

  • Reported release

    751

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-09-16

  • Closed date

    2011-05-06

  • Last modified date

    2011-05-06

  • 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 BUS DEV

  • Fixed component ID

    5724S5000

Applicable component levels

  • R751 PSN

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSMQ79","label":"Rational Business Developer"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.5.1","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
06 May 2011