I am learning the jacoco code, I ran the class "CoreTutorial", and dump the bytecode, This's what I saw in the class file
boolean[] var1 = $jacocoInit();
How can I see the content in method "$jacocoInit()", meanwhile, I notice there is a variable named jacocoData, but I cannot saw it in the class file.
--
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+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/a75e3c51-89f0-4c0c-9313-de3b65daea1ao%40googlegroups.com.
File file = new File("xxxx");
FileOutputStream f = new FileOutputStream(file);
f.write(instrumented);
f.close();
I add this in class CoreTutorial method execute(), write the instrumented classes to the file then decompile it. but cannot see what's in the method jacocoInit()
if you want to study byte code instrumentation done by JaCoCo I recommend to use offline instrumentation (e.g. with the cli) and decompile instrumented classes afterwards. The “CoreTutorial” instruments classes in-memory only.Part of the content of $jacocoInit() depends on the selected runtime (See IExecutionDataAccessorGenerator implementations and https://www.jacoco.org/jacoco/trunk/doc/implementation.html)Cheers,-marc
On 21. Jul 2020, at 08:49, moon xxx <qiaom...@gmail.com> wrote:
I am learning the jacoco code, I ran the class "CoreTutorial", and dump the bytecode, This's what I saw in the class file
boolean[] var1 = $jacocoInit();
How can I see the content in method "$jacocoInit()", meanwhile, I notice there is a variable named jacocoData, but I cannot saw it in the class file.--
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 jac...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/4153cb66-95b9-497c-8175-7e2b199d0094o%40googlegroups.com.