On Friday, June 2, 2023 at 7:14:04 AM UTC+2 Marc R. Hoffmann wrote:

Hi Gabil,

can you please provide the full stack trace? There should be a “caused by” 
section.

Regards,
-marc

On 2. Jun 2023, at 04:13, Ganeshwaran Gabilan <gabil...@gmail.com> wrote:

Hi Team,

I'm getting the following error with gradle 8.1 and  jacoco version 0.8.8. 
```
java.lang.instrument.IllegalClassFormatException: Error while instrumenting 
java/sql/Time.
at 
org.jacoco.agent.rt.internal_43f5073.CoverageTransformer.transform(CoverageTransformer.java:94)
```
I just replaced the gradle `jacocoMerge` task with the `jacocoReport` task. 
What could be the issue?


Note that this is clearly not JaCoCo version 0.8.8

Because starting from version 0.8.8 messages of exceptions occurring during 
analysis or instrumentation include JaCoCo version - 
https://github.com/jacoco/jacoco/pull/1217
Moreover package org.jacoco.agent.rt.internal_43f5073 corresponds to JaCoCo 
version 0.8.5,
which supports class files of Java versions only up to 13, so I'm ready to 
bet that this exception is due to the use of the old JaCoCo version with a 
Java version greater than 13.

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jacoco+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/af9730ac-764f-4391-b059-3f7b2ac07b71n%40googlegroups.com.

Reply via email to