All Versions
11
Latest Version
Avg Release Cycle
167 days
Latest Release
1542 days ago
Changelog History
Page 1
Changelog History
Page 1
-
v0.8.6 Changes
September 15, 2020π New Features
- π JaCoCo now officially supports Java 14.
- π Experimental support for Java 15 class files (GitHub #992).
- π Experimental support for Java 16 class files (GitHub #1059).
- Methods
toString
,hashCode
andequals
generated by compiler for records are filtered out during generation of report (GitHub #990). - Bridge methods are filtered out during generation of report (GitHub #1010).
- Methods generated by Kotlin compiler for non-overridden non-abstract methods of interfaces are filtered out during generation of report (GitHub #1012).
- Branches added by the Kotlin compiler version 1.3.60 for suspending functions with tail call optimization are filtered out during generation of report (GitHub #1016).
π Fixed bugs
- Compression method of zip entries is now preserved when instrumenting archives. This allows to use JaCoCo with frameworks that expect uncompressed entries (GitHub #1018).
Non-functional Changes
- π Support for Pack200 was removed in JDK 14. JaCoCo will now throw a detailed exception when Pack200 archives are processed with the latest JDKs (GitHub #984).
- JaCoCo now depends on ASM 8.0.1 (GitHub #1032, #1043).
API Changes
- π
URLStreamHandlerRuntime
removed (GitHub #471).
-
v0.8.5 Changes
October 12, 2019π New Features
- π JaCoCo now officially supports Java 13
- π Experimental support for Java 14 class files (GitHub #897).
- 0οΈβ£ Branches added by the Kotlin compiler for open functions with default arguments are filtered out during generation of report (GitHub #887).
π Fixed bugs
- 0οΈβ£
synthetic
constructors that contain values of default arguments in Kotlin should not be ignored (GitHub #888). - β‘οΈ Instrumentation should update indexes of local variables in annotations (GitHub #894).
- 0οΈβ£ Branches added by the Kotlin compiler for functions with default arguments and containing arguments of type
long
ordouble
should be filtered out during generation of report (GitHub #908). synthetic
methods that contain bodies of anonymous functions in Scala should not be ignored (GitHub #912).- To avoid failures with invalid class files report generation now checks that source references are actually files (GitHub #941).
NullPointerException
during filtering (GitHub #942, #944).
Non-functional Changes
- JaCoCo now distributed under the terms and conditions of the Eclipse Public License Version 2.0 (GitHub #943).
- Prevent startup when JaCoCo runtime cannot be initialized to avoid subsequent faults (GitHub #910).
- JaCoCo now depends on ASM 7.2 (GitHub #947).
API Changes
- π§ The coverage check API and tools (Ant, Maven) now report an error, when a coverage ratio limit is configured outside the range [0,1] to avoid common configuration mistakes (GitHub #783).
- π Unsupported class file versions are now consistently reported as exceptions by all methods of
Analyzer
andInstrumenter
and thus also during report generation and offline instrumentation (GitHub #952).
-
v0.8.4 Changes
May 10, 2019π New Features
- π JaCoCo now officially supports Java 12.
- Instrumentation does not add synthetic field to Java 11+ class files, however still adds synthetic method (GitHub #845).
- Branches added by the Kotlin compiler version 1.3.30 for suspending lambdas and functions are filtered out during generation of report (GitHub #849).
π Fixed bugs
- π Fixed incorrect update of frames caused by bug in ASM library in case of arrays with more than 7 dimensions (GitHub #839).
- π Fixed regression, which was introduced in 0.8.3 -
module-info.class
should be excluded from analysis to not causeIllegalStateException
(GitHub #859).
API Changes
- π Methods
Instrumenter.instrument(org.objectweb.asm.ClassReader)
andAnalyzer.analyzeClass(org.objectweb.asm.ClassReader)
were removed (GitHub #850).
Non-functional Changes
- JaCoCo now depends on ASM 7.1 (GitHub #851).
-
v0.8.3 Changes
January 24, 2019π New Features
- π jacoco-maven-plugin now requires at least Maven 3.0 (GitHub #821).
- π JaCoCo now officially supports Java 11 (GitHub #760).
- π Experimental support for Java 13 class files (GitHub #835).
- Branch added by the Kotlin compiler for "unsafe" cast operator is filtered out during generation of report (GitHub #761).
- Branch added by the Kotlin compiler for not-null assertion operator is filtered out during generation of report (GitHub #815).
- Instructions inlined by Kotlin compiler are filtered out during generation of report (GitHub #764).
- Branches added by the Kotlin compiler for suspending lambdas and functions are filtered out during generation of report (GitHub #802, #803, #809).
- Classes and methods annotated by annotation whose retention policy is
runtime
orclass
and whose simple name contains "Generated" (previously equality was required) are filtered out during generation of report (GitHub #822). - HTML report shows message when source file can't be found (GitHub #801).
- HTML report shows message when class has no debug information (GitHub #818).
- HTML report shows message when analyzed class does not match executed (GitHub #819).
- HTML report shows message when no class files specified and when none of the analyzed classes contain code relevant for code coverage (GitHub #833).
- Empty class and sourcefile nodes are preserved and available in XML report (GitHub #817).
- Agent avoids conflicts with other agents when running on Java 9+ (GitHub #829).
π Fixed Bugs
- 0οΈβ£
synthetic
methods that contain values of default arguments in Kotlin should not be ignored (GitHub #774). synthetic
methods that represent suspend functions in Kotlin should not be ignored (GitHub #804).- β Removed misleading parameters
includes
andexcludes
fromdump
,merge
andrestore-instrumented-classes
goals of jacoco-maven-plugin, because they have no effect (GitHub #827).
Non-functional Changes
- JaCoCo now depends on ASM 7.0 (GitHub #760).
-
v0.8.2 Changes
August 22, 2018π New Features
- π Experimental support for Java 11 and Java 12 class files, including JEP 12 "preview features" (GitHub #719, #738, #743).
- Branches and instructions generated by javac 11 for try-with-resources statement are filtered out (GitHub #669).
- Synthetic classes are filtered out during generation of report (GitHub #668).
- Part of bytecode generated by ECJ for
switch
statements onjava.lang.String
values is filtered out during generation of report (GitHub #735, #741, #746). - Methods added by the Kotlin compiler that do not have line numbers are filtered out during generation of report. Idea and implementation by Nikolay Krasko (GitHub #689).
- Branch added by the Kotlin compiler for reading from
lateinit
property is filtered out during generation of report. Implementation by Fabian Mastenbroek (GitHub #707). - Bytecode generated by Kotlin compiler for implicit
else
ofwhen
expressions that list all cases ofenum
orsealed class
is filtered out during generation of report (GitHub #721, #729, #749). - β Additional bytecode generated by Kotlin compiler for when expressions on
kotlin.String
values is filtered out during generation of report (GitHub #737, #746). - Classes and methods annotated with annotation whose retention policy is
runtime
orclass
and whose simple name isGenerated
are filtered out during generation of report (GitHub #731). - Maven goal report-aggregate now also considers dependencies specified using version range. Idea and implementation by Lukas Krejc (GitHub #658).
π Fixed Bugs
- π Don't insert stackmap frames into class files with version < 1.6, this fixes regression which was introduced in version 0.6.5 (GitHub #667).
- Question mark in filter expressions now correctly matches exactly one character (GitHub #672).
- Part of bytecode that javac generates for
switch
statement onjava.lang.String
values with a small number cases is now correctly filtered out during generation of report (GitHub #730).
Non-functional Changes
- JaCoCo now depends on ASM 6.2.1 (GitHub #706, #725).
- π Improved error message when already instrumented classes are used for instrumentation or analysis (GitHub #703).
- π JaCoCo build now requires at least Maven 3.3.9 and JDK 8 (GitHub #711).
API Changes - β‘οΈ The XML report now has an optional attribute
sourcefilename
on theclass
element to allow unambiguously relate classes to source files. The JaCoCo DTD version has been updated to 1.1 (GitHub #702).
-
v0.8.1 Changes
March 22, 2018 -
v0.8.0 Changes
January 03, 2018π 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
-
v0.7.9 Changes
February 06, 2017π Fixed Bugs
- "
java.lang.ClassFormatError: Short length on BootstrapMethods in class file
" caused by bug in ASM library (GitHub #462). - Do not recompute frames in case of large methods, otherwise
java.lang.ClassNotFoundException
might be thrown (GitHub #177). ExecutionDataWriter.FORMAT_VERSION
is not a compile-time constant (GitHub #474).- Maven goal "prepare-agent" should not overwrite existing property value if execution was skipped (GitHub #486).
API Changes
JaCoCo.ASM_API_VERSION
removed (GitHub #474).
Non-functional Changes
- JaCoCo now depends on ASM 5.2.
- π OSGi metadata now generated automatically and additionally include
uses
directives,Require-Capability
attribute, and export of all internal packages withx-internal:=true directive
(GitHub #211). - β Removed OSGi attributes that were mistakenly added in version 0.6.1 into
jacocoant.jar
that contains all dependencies (GitHub #211).
- "
-
v0.7.8 Changes
December 11, 2016π New Features
- π User property
jacoco.dataFile
for parameterdataFile
of Mavenreport
goal (GitHub #322).
π Fixed Bugs
- π Use
RoundingMode#FLOOR
instead ofRoundingMode#HALF_EVEN
for percentages in HTML report, so that "99.5" is displayed as "99%", not as "100%" (GitHub #452). - Do not add useless members into Java 8 interfaces that have only interface initialization and abstract methods (GitHub #441).
- π Fix instrumentation to not violate Java Virtual Machine Specification regarding initialization of final fields, otherwise
IllegalAccessError
will be thrown starting from OpenJDK 9 EA b127 (GitHub #434). - π Fix instrumentation of interfaces with default methods to not create incorrect constant pool entries, which lead to
IncompatibleClassChangeError
starting from OpenJDK 9 EA b122 (GitHub #428). - β Add Maven goal report-aggregate to lifecycle-mapping-metadata.xml (GitHub #427).
Non-functional Changes
- π User property
-
v0.7.7 Changes
June 06, 2016π New Features
- π New Maven goal report-aggregate to create reports for multi-module projects (GitHub #388).
- π New parameters title and footer for Maven reporting goals allow customization of generated reports.
- π Renamed "dot" resources in generated HTML reports to become more web hosting friendly (GitHub #401).
- π Experimental support for Java 9 class files (GitHub #406).
π Fixed Bugs
- Don't suppress EOF errors in case of truncated execution data files (GitHub #397).
Non-functional Changes
- β Empty probe arrays are not written to execution data files any more. This reduces exec file size significantly for per-test data dumps. (GitHub #387).
- More information about context is provided when unable to read input during analysis. (GitHub #400).
- π Require at least Maven 3.0 for build of JaCoCo.