Skip to content

@Godin Godin released this Oct 12, 2019 · 1 commit to master since this release

New Features

  • JaCoCo now officially supports Java 13
  • Experimental support for Java 14 class files (GitHub #897).
  • Branches added by the Kotlin compiler for open functions with default arguments are filtered out during generation of report (GitHub #887).

Fixed bugs

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

Assets 3

@Godin Godin released this May 10, 2019 · 68 commits to master since this release

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

Assets 3

@Godin Godin released this Jan 24, 2019 · 90 commits to master since this release

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

  • 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

Assets 3

@Godin Godin released this Aug 22, 2018 · 144 commits to master since this release

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

Assets 3

@Godin Godin released this Mar 22, 2018 · 202 commits to master since this release

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

Assets 3

@Godin Godin released this Jan 3, 2018 · 212 commits to master since this release

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

Assets 3

@Godin Godin released this Feb 6, 2017 · 292 commits to master since this release

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

Assets 3

@Godin Godin released this Dec 11, 2016 · 308 commits to master since this release

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

Assets 3

@Godin Godin released this Jun 6, 2016 · 334 commits to master since this release

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

Assets 3

@Godin Godin released this Feb 18, 2016 · 367 commits to master since this release

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

Assets 3
You can’t perform that action at this time.