IBM Support

PI22107: When generating Java from EGL the '||' operator is comparing incompatible types

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When java is generated from the EGL code, the following invalid
    code is generated:
    
    Example:
    -----------
    boolean $truncation = false;
    $truncation = com.ibm.javart.sql.SqlHostVars.getUnicodeExact(
    ezeProgram.MYSCHEMA.TBNAME, $results, 1, $columns, ezeProgram )
    || $truncation;
    
    The problem is that:
        com.ibm.javart.sql.SqlHostVars.getUnicodeExact()
    is a void method: in java you cannot compare void and boolean
    with the '||' operator.
    

Local fix

  • A fix is available from IBM Rational Client Support
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * EGL users who use SQL to retrieve unicode value and generate *
    * to Java.                                                     *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * The generated Java code has compile error.                   *
    * boolean $truncation = false;                                 *
    * $truncation =                                                *
    * com.ibm.javart.sql.SqlHostVars.getUnicodeExact(              *
    * ezeProgram.MYSCHEMA.TBNAME, $results, 1, $columns,           *
    * ezeProgram )                                                 *
    * || $truncation;                                              *
    *                                                              *
    * The problem is that:                                         *
    *     com.ibm.javart.sql.SqlHostVars.getUnicodeExact()         *
    * is a void method: in java you cannot compare void and        *
    * boolean                                                      *
    * with the '||' operator.                                      *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • The problem is fixed.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI22107

  • Reported component name

    RATL BUS DEV

  • Reported component ID

    5724S5000

  • Reported release

    910

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-07-16

  • Closed date

    2014-12-15

  • Last modified date

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

  • Fixed component ID

    5724S5000

Applicable component levels

  • R851 PSY

       UP

  • R901 PSY

       UP

  • R911 PSY

       UP

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

Document Information

Modified date:
15 October 2021