IBM Support

PI90039: IBM DEVELOPER FOR Z SYSTEMS (IDZ) PLI ZUNIT TESTCASE MAY RECEIVE AN ARRAYINDEXOUTOFBOUNDSEXCEPTION

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • IBM Developer for z Systems - IDz - v14
    
    When you build a PLI testcase you may receive an
    ArrayIndexOutOfBoundsException
    
    Below is the entry found in the .log file:
    !ENTRY com.ibm.etools.zunit.ui
    !MESSAGE
    
    !STACK 0
    
    java.lang.ArrayIndexOutOfBoundsException
    
    at java.util.ArrayList.elementData
    at java.util.ArrayList.get
    at com.ibm.systemz.pl1.editor.core.parser.Ast.
                                  AbstractASTNodeList.getElementAt
    
    at com.ibm.systemz.pl1.editor.core.parser.Ast.
                        ExpressionOrStarList.getExpressionOrStarAt
    
    at com.ibm.etools.zunit.ast.util.PliAstNodeUtil.
                                            getReferenceNodeOfADDR
    
    at com.ibm.etools.zunit.ast.util.PliAstNodeUtil.
                                            getReferenceNodeOfADDR
    
    at com.ibm.etools.zunit.ast.util.PliAstNodeUtil.
                                              getInitReferenceNode
    
    at com.ibm.etools.zunit.ast.pli.DataItemStructureBuilder.
                                                  buildPointerInfo
    

Local fix

  • None Available
    

Problem summary

  • When analyzing dcl 4 lp_psqlca pointer init(null()), zUnit trys
    to access the first argument of 0 length array of PL/I model,
    and it caused ArrayIndexOutOfBoundsException.
    

Problem conclusion

  • zUnit PL/I analyzer has been corrected so that the array length
    of PL/I model would be checked.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI90039

  • Reported component name

    DEV FOR Z SYS

  • Reported component ID

    5724T0700

  • Reported release

    E00

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-11-09

  • Closed date

    2018-01-25

  • Last modified date

    2018-01-25

  • 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

    DEV FOR Z SYS

  • Fixed component ID

    5724T0700

Applicable component levels

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

Document Information

Modified date:
27 October 2020