IBM Support

PH18850: IBM DEVELOPER FOR Z SYSTEMS (IDZ)ATTEMPTS TO VIEW THE EXPANDED SOURCE OF A COBOL MODULE FAILS

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
    Attempts to view the expanded source of a COBOL module fails
    
    User receives the error below:
    java.lang.StringIndexOutOfBoundsException:
    String index out of range: 68
    at java.lang.String.substring(String.java:2715)
    at com.ibm.systemz.common.editor.expandsource.
                               ExpandSourceManager.ProcessSource
                                   (ExpandSourceManager.java:189)
    at com.ibm.systemz.common.editor.expandsource.
                                ExpandSourceManager.ExpandSource
                                    (ExpandSourceManager.java:90)
    at com.ibm.systemz.common.editor.jface.actions.util.
                           ExpandSourcePrep.createExpandedSource
                                       (ExpandSourcePrep.java:67)
    at com.ibm.systemz.common.editor.jface.actions.
           AbstractShowExpandedSourceAction.createExpandedSource
                       (AbstractShowExpandedSourceAction.java:58)
    at com.ibm.systemz.common.editor.jface.actions.
     A                        bstractShowExpandedSourceAction.run
                        (AbstractShowExpandedSourceAction.java:68)
    at org.eclipse.jface.action.Action.runWithEvent
                                                 (Action.java:473)
    at org.eclipse.jface.action.ActionContributionItem.
            handleWidgetSelection(ActionContributionItem.java:565)
    ...
    

Local fix

  • None available
    

Problem summary

  • Incorrect assumption about string length.
    

Problem conclusion

  • Length of string checked in logic to avoid NPE.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH18850

  • Reported component name

    DEV FOR Z/OS

  • Reported component ID

    5724T0700

  • Reported release

    E10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-11-05

  • Closed date

    2019-12-10

  • Last modified date

    2019-12-10

  • 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/OS

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

Document Information

Modified date:
27 October 2020