IBM Support

PM43039: Generated Java includes extra argument with error constructor CharItem(String, int, int, boolean, int, String) is undefined

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    :  8.0.1.1
    Description.
    After successful migration from VAGen to EGL an error is
    produced in the associated Java generated code with a specific
    application.
    
    Example entry in EGL code which produces the erroneous statement
    in Java code:
    RESULTAAT = VGLib.concatenateWithSeparator(BN504U1.OBJECT-RIJ,
    BNUASPB-WS.BNMBBEDRAG, ';');
    
    Generates in Java code as the following snippet of the relating
    line:
    ezeProgram.BNUASPB_002dWS.RESULTAAT.setValue(
    ezeProgram.eze$getegl__vg__VGLib().concatenateWithSeparator(
    ezeProgram,ezeProgram.BN504U1.OBJECT_002dRIJ,
    com.ibm.javart.operations.Assign.run( ezeProgram, new
    com.ibm.javart.CharItem( 'source',
    com.ibm.javart.Value.SQL_NOT_NULLABLE, 13, true, 4, 'C13;' )
    
    The error problems view for the Java code is then shown as: The
    constructor CharItem(String, int, int, boolean, int, String) is
    undefined.
    
    The quick fix option in the source editor will identify that the
    CharItem has an 'extra' int argument added as above ie
    new com.ibm.javart.CharItem( 'source',
    com.ibm.javart.Value.SQL_NOT_NULLABLE, 13, true, 4, 'C13;' )
    Removing the int argument via the quick fix option will also
    resolve the error.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Incorrect Java code is generated when the function
    VGLib.concatenateWithSeparator is called, the first argument
    is a char variable, and the second argument is a num
    variable.
    

Problem conclusion

  • The problem has been fixed.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM43039

  • Reported component name

    RATL BUS DEV

  • Reported component ID

    5724S5000

  • Reported release

    801

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-07-05

  • Closed date

    2011-07-28

  • Last modified date

    2011-07-28

  • 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

  • R801 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":"8.0.1","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
28 July 2011