All Versions
11
Latest Version
Avg Release Cycle
167 days
Latest Release
1318 days ago

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 and equals 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 or double 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 and Instrumenter and thus also during report generation and offline instrumentation (GitHub #952).

    All Resolved Issues

  • 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 cause IllegalStateException (GitHub #859).

    API Changes

    • 🚚 Methods Instrumenter.instrument(org.objectweb.asm.ClassReader) and Analyzer.analyzeClass(org.objectweb.asm.ClassReader) were removed (GitHub #850).

    Non-functional Changes

    • JaCoCo now depends on ASM 7.1 (GitHub #851).

    All Resolved Issues

  • 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 or class 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 and excludes from dump, merge and restore-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).

    All Resolved Issues

  • 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 on java.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 of when expressions that list all cases of enum or sealed 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 or class and whose simple name is Generated 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 on java.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 the class element to allow unambiguously relate classes to source files. The JaCoCo DTD version has been updated to 1.1 (GitHub #702).

    All Resolved Issues

  • v0.8.1 Changes

    March 22, 2018

    πŸ†• New Features

    • πŸ‘ JaCoCo now supports Java 10 (GitHub #629).
    • Empty constructor without parameters in enum is filtered out during generation of report (GitHub #649).

    All Resolved Issues

  • 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 Ant check 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 and provided 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 and values 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 on java.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

    • JaCoCo now depends on ASM 6.0 (GitHub #600).
    • More information about context is provided when unable to read input during instrumentation (GitHub #527).
    • More information about context is provided when unable to read stream during analysis (GitHub #541).

    All Resolved Issues

  • 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 with x-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).

    All Resolved Issues

  • v0.7.8 Changes

    December 11, 2016

    πŸ†• New Features

    • πŸ‘‰ User property jacoco.dataFile for parameter dataFile of Maven report goal (GitHub #322).

    πŸ›  Fixed Bugs

    • πŸ‘‰ Use RoundingMode#FLOOR instead of RoundingMode#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

    • πŸš€ Released JaCoCo JARs are not signed any more. Signed versions of JaCoCo are now available from the Eclipse Orbit project (GitHub #466).
    • Simplified numbering of versions - JaCoCo JARs in Maven Central repository do not have qualifier any more (GitHub #468).

    All Resolved Issues

  • 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.

    All Resolved Issues