Thanks a lot. I found out I forgot to modify probes in ExecutionData. It is 
too confuse to make such a mistake.

在2023年11月6日星期一 UTC+8 01:35:55<Marc Hoffmann> 写道:

> Hi,
>
> JaCoCo uses boolean arrays to store probes. If you want to change that 
> data type you basically have to change every aspect of JaCoCo: 
> instrumentation, execution data handling, exec file format and remote 
> protocols, analysis etc.
>
> Regards,
> -marc
>
> On 5. Nov 2023, at 16:52, jun yin <[email protected]> wrote:
>
> I want to modify $jacocoInit from boolean[] to int[]. I changed the "[Z" 
> to "[I", yet I calls these exceptions:
>
> Exception in thread "main" java.lang.BootstrapMethodError: bootstrap 
> method initialization exception
> at 
> java.base/java.lang.invoke.BootstrapMethodInvoker.invoke(BootstrapMethodInvoker.java:188)
> at 
> java.base/java.lang.invoke.ConstantBootstraps.makeConstant(ConstantBootstraps.java:72)
> at 
> java.base/java.lang.invoke.MethodHandleNatives.linkDynamicConstantImpl(MethodHandleNatives.java:337)
> at 
> java.base/java.lang.invoke.MethodHandleNatives.linkDynamicConstant(MethodHandleNatives.java:329)
> at 
> com.example.demo.SpringbootDemoApplication.main(SpringbootDemoApplication.java)
> Caused by: java.lang.ClassCastException: class [Z cannot be cast to class 
> [I ([Z and [I are in module java.base of loader 'bootstrap')
> at 
> com.example.demo.SpringbootDemoApplication.$jacocoInitt(SpringbootDemoApplication.java)
> at 
> java.base/java.lang.invoke.BootstrapMethodInvoker.invoke(BootstrapMethodInvoker.java:90)
> ... 4 more
>
> what should I do next, thanks.
>
> -- 
> 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 [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jacoco/0780bd7e-33ad-4729-a37d-ca4e8e1cf1f0n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jacoco/0780bd7e-33ad-4729-a37d-ca4e8e1cf1f0n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/5b499a57-215c-4a70-9a05-bb182028166an%40googlegroups.com.

Reply via email to