JaCoCo v0.8.0 Release Notes
Release Date: 2018-01-03 // about 6 years ago-
π New Features
- π JaCoCo now officially supports Java 9 (GitHub #600).
- π» JaCoCo now comes with a simple command line interface (GitHub #525).
- π§ Limit configuration of Maven
check
goal and Antcheck
element now also supports percentage values (GitHub #534). - Manifests of JAR files now have
Automatic-Module-Name
for Java 9 (GitHub #565). - Maven aggregated reports will now also include modules of
runtime
andprovided
dependencies (GitHub #498, #572).
During creation of reports various compiler generated artifacts are filtered out, which otherwise require unnecessary and sometimes impossible tricks to not have partial or missed coverage:
- Methods
valueOf
andvalues
of enum types (GitHub #491). - Private empty no-argument constructors (GitHub #529).
- π Methods annotated with
@lombok.Generated
to better integrate with Lombok >= 1.16.14. Initial analysis and contribution by RΓΌdiger zu Dohna (@t1) (GitHub #513). - π Methods annotated with
@groovy.transform.Generated
to better integrate with Groovy >= 2.5.0. Thanks to Andres Almiray (@aalmiray) for adding the annotation to Groovy (GitHub #610). - π Part of bytecode for
synchronized
blocks (GitHub #501). - Part of bytecode for try-with-resources statements (GitHub #500).
- Part of bytecode for
finally
blocks (GitHub #604). - Part of bytecode for
switch
statements onjava.lang.String
values (GitHub #596).
β‘οΈ Note: Tools that directly read exec files and embed JaCoCo for this (such as SonarQube or Jenkins) will provide filtering functionality only after they updated to this version of JaCoCo.
π Fixed Bugs
- π Fixed bug in instrumentation of exception handlers, which was causing damage of structured locking in certain situations and as consequence poor performance of instrumented methods, analysis and fix contributed by Allen Hair (@allenhair) (GitHub #627).
dump
commands now report error when server unexpectedly closes connection without sending response (GitHub #538).- β¬οΈ Reduced chance of conflict with other agents (GitHub #555).
- βͺ Restored Maven
help
goal that was missing in version 0.7.9 (GitHub #559). NullPointerException
during offline instrumentation of module-info.class (GitHub #600, GitHub #634).- β‘οΈ Incorrect update of frames caused by bug in ASM library (GitHub #600).
- Loss of
InnerClasses
attribute caused by bug in ASM library (GitHub #600). NegativeArraySizeException
during instrumentation caused by bug in ASM library (GitHub #600).
Non-functional Changes