Skip to content

IllegalStateException: Incompatible execution data for class org/junit/runner/Description #286

@don-vip

Description

@don-vip

Hi,
We're using Jacoco on JOSM project. We switched from Jacoco 0.7.2 to 0.7.3 in this commit:
https://josm.openstreetmap.de/changeset/8090/josm/
Since, I have a Sonar analysis that fails every time with the same error:
http://donvip.fr/jenkins/job/JOSM-Plugins-Sonar/211/console

java.lang.IllegalStateException: Incompatible execution data for class org/junit/runner/Description with id c3b4a36e785ee4be.
at org.jacoco.core.data.ExecutionData.assertCompatibility(ExecutionData.java:181)
at org.jacoco.core.data.ExecutionData.merge(ExecutionData.java:144)
at org.jacoco.core.data.ExecutionData.merge(ExecutionData.java:117)
at org.jacoco.core.data.ExecutionDataStore.put(ExecutionDataStore.java:53)
at org.jacoco.core.data.ExecutionDataStore.visitClassExecution(ExecutionDataStore.java:175)
at org.jacoco.core.data.ExecutionDataReader.readExecutionData(ExecutionDataReader.java:149)
at org.jacoco.core.data.ExecutionDataReader.readBlock(ExecutionDataReader.java:113)
at org.jacoco.core.data.ExecutionDataReader.read(ExecutionDataReader.java:87)
at org.sonar.plugins.jacoco.JaCoCoOverallSensor.loadSourceFiles(JaCoCoOverallSensor.java:124)
at org.sonar.plugins.jacoco.JaCoCoOverallSensor.mergeReports(JaCoCoOverallSensor.java:99)
at org.sonar.plugins.jacoco.JaCoCoOverallSensor.analyse(JaCoCoOverallSensor.java:90)
at org.sonar.batch.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:79)

Jacoco calls Junit from Ant as follows:

<junit printsummary="yes" fork="true" forkmode="once" dir="${basedir}">

(See https://trac.openstreetmap.org/browser/subversion/applications/editors/josm/plugins/build-common.xml#L443 )

I have no idea what's wrong but it looks like somewhat a regression or a change of behaviour between 0.7.2 and 0.7.3.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions