Jacoco Versions Save

:microscope: Java Code Coverage Library

v0.8.2

5 years ago

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

6 years ago

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

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

7 years ago

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

7 years ago

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

7 years ago

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

v0.7.6

8 years ago

New Features

  • New agent option inclnolocationclasses to support execution environments like Android where no source location is provided with classes (GitHub #288).
  • Improved error message in case of incompatible execution data files. (GitHub #319).
  • Command line agent options now supports comma in file names. Contributed by Jochen Berger. (GitHub #358).

Fixed Bugs

  • Fix MBeanClient example (GitHub #333).
  • Avoid ConcurrentModificationException during shutdown (GitHub #364).

API Changes

  • In case of incompatible execution data formats read from another JaCoCo version ExecutionDataReader.read() now throws a IncompatibleExecDataVersionException.

Non-functional Changes

  • JaCoCo now depends on ASM 5.0.4.

All Resolved Issues

v0.7.5

8 years ago

New Features

  • Better detection of coverage in code blocks with implicit exceptions. (GitHub #310).
  • Added lifecycle-mapping-metadata.xml for M2E (GitHub #203).
  • Allow locales with country and variant for Ant report task (GitHub #289).

Fixed Bugs

  • For the Ant tasks coverage and agent the destfile attribute is now passed as an absolute path also in the default case (GitHub #301).

API Changes

  • The exec file version has been updated and is not compatible with previous versions.

All Resolved Issues

v0.7.4

9 years ago

Fixed Bugs

  • Restored exec file compatibility with version 0.7.2 by fixing missing probes in case of try/catch blocks which are jump targets. (GitHub #286).

All Resolved Issues

v0.7.3

9 years ago

New Features

  • For offline instrumemtation agent configuration supports system properties replacements. Implementation based on pull request of GitHub user 'debugger' (GitHub #262).
  • Exclude dynamically generated classes from instrumentation for better interoperability with JMockit, analysis contributed by Rogério Liesenfeld (GitHub #272).

Fixed Bugs

  • Instrumented bytecode now compatible with Android ART runtime, analysis and fix contributed by Allen Hair (GitHub #265).

All Resolved Issues