IBM Support

Known issues and limitations of Code Coverage

Question & Answer


Question

What are the known issues, limitations, and work-arounds for using Java Code Coverage and z/OS® Debugger with Compiled Code Coverage?

Cause

The following table lists the issues, limitations, and available workarounds for Java Code Coverage and IBM z/OS Debugger and Compiled Languages Code Coverage:

Area Type Description Solution or Work-Around
Code Coverage Results View Issue When you run an Eclipse 15.0.0 IDE in a language other than English, opening the following dialogs results in an NullPointerException error:
  • Add Result Location
  • Export Result
  • Import Result
Update to 15.0.1 or later of IBM Debug for z/OS, IBM Developer for z/OS or IBM Developer for z/OS Enterprise Edition.
On earlier versions, to avoid this issue, from the Remote Systems view create a new local connection named Local:
  • From the Remote Systems view, double-click New Connection>Local.
  • Specify Local in the Connection Name field.
  • Click Finish.
Issue When you run with a Eclipse 15.0 IDE with a Chinese locale, the pop-up menu for a Java code coverage result is missing the action:
移除代码覆盖指示符(Remove code coverage indicators)
Update to 15.0.2 or later of IBM Debug for z/OS, IBM Developer for z/OS or IBM Developer for z/OS Enterprise Edition.
On earlier version, the action is incorrectly named.  Select the following action to remove the indicators:
工作台报告(Workbench Report)
Issue Updating the threshold percentage does not automatically refresh status column in the view. Update to 15.0.3 or later of IBM Debug for z/OS, IBM Developer for z/OS or IBM Developer for z/OS Enterprise Edition.
On earlier versions, the status column is not refreshed automatically.  First, modify the threshold, then click the Refresh button in the view toolbar.
Issue When you run code coverage for a Java application or JUnit launch with IDz 15.0.3 IDE twice and both Java applications or JUnit launches are using the same project, the view does not refresh for the 2nd result.  It displays the same value as the 1st result, and opens a web report for the 2nd result. It does display the correct values in the web report.    Run the 1st Java application or JUnit launch, rename the Java project, then run the 2nd one under the same project.  The Code Coverage Results View now displays the correct value for the 2nd result. 
Compile Options Limitation Not all compiler options are supported for code coverage in Debug Tool compatibility mode. For more information, see Supported compilers and options for code coverage for details on which compiler options are required for Compiled Code Coverage with z/OS Debugger.
Import Issue In Eclipse 15.0 IDE, you cannot open the Import Compiled Code Coverage Result dialog when the Code Coverage Results view is not opened. Update to 15.0.1 or later of IBM Debug for z/OS, IBM Developer for z/OS or IBM Developer for z/OS Enterprise Edition.
For earlier versions, first open the Code Coverage Results view, then access the Import dialog.
For more information, see Cannot open Import Compiled Code Coverage Result dialog when Code Coverage Results view is not opened.
Code Coverage collection Issue Source is not correctly annotated line information when COBOL programs contain both a program and user defined functions, and code coverage was collected using the listings instead of source. Use the source option to collect code coverage for these cases.
Headless Collector Limitation Headless collection for compiled languages is not supported on macOS. None.
Issue On Linux, code coverage cannot be collected in standard mode when the headless collector is installed in a directory with a space. Update to 14.2.4 or later, or 15.0.1 or later of IBM Developer for z/OS or IBM Developer for z/OS Enterprise Edition.
For earlier versions, use Debug Tool compatibility mode to collect code coverage, or install the headless collector to a directory that does not contain a space.
PDF Report Issue PDF reports appear in English only. Update to 15.0 or later of IBM Debug for z/OS, IBM Developer for z/OS or IBM Developer for z/OS Enterprise Edition. For more information, see Does Code Coverage PDF Report Support Multi Languages in IBM Developer for z Systems? for details on generating PDF reports.
Java Code Coverage Issue Running code coverage on Linux for a Java application or JUnit launch, IDz 15.0.1 IDE or newer clients does not generate code coverage result and the following errors appear in console:
JVMJ9TI064E Agent initialization function Agent OnLoad failed for library, return code -1
JVMJ9VM015W Initialization error for library j9jvmti29(-3): JVMJ9VM009E J9VMDllMain failed
Update to 15.0.3 or later of IBM Developer for z/OS or IBM Developer for z/OS Enterprise Edition.

[{"Line of Business":{"code":"LOB35","label":"Mainframe SW"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSTQWA","label":"IBM Debug for z\/OS"},"ARM Category":[{"code":"a8m0z00000009OdAAI","label":"IDz Family-\u003ECode Coverage"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)"},{"Type":"MASTER","Line of Business":{"code":"LOB35","label":"Mainframe SW"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSTRMM","label":"IBM Developer for z\/OS"},"ARM Category":[{"code":"a8m0z00000009OdAAI","label":"IDz Family-\u003ECode Coverage"}],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"},{"Type":"MASTER","Line of Business":{"code":"LOB35","label":"Mainframe SW"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSTQXQ","label":"IBM Developer for z\/OS Enterprise Edition"},"ARM Category":[{"code":"a8m0z00000009OdAAI","label":"IDz Family-\u003ECode Coverage"}],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]

Document Information

Modified date:
12 August 2022

UID

ibm16342877