thank u for reply, which instructions do this? I found jacocoinit method 
use Logger.log(Level level, String msg, Object params[]) and custom 
Handler to report the boolean array, but jacocoinit was called at first 
line in a method, the target class was not executed, so it report the fully 
false boolean array

On Monday, October 19, 2020 at 3:42:39 PM UTC+8 Marc R. Hoffmann wrote:

> Hi,
>
> the target class gets “instrumented”. I.e. additional bytecode 
> instructions are inserted which set the respective boolean flags in the 
> runtime data.
>
> Regards,
> -marc
>
> On 19. Oct 2020, at 09:30, winter <[email protected]> wrote:
>
> I debug the CoreTutorial.java step by step
>
> final Runnable targetInstance = (Runnable) targetClass.newInstance();
> targetInstance.run();
>
> when these lines were executed, it means our test target was executed, 
> then I noticed the value of probe arrays in variable store in class 
> RuntimeData changed, like [true,true,true,false,true,true], how it works? I 
> didn't find how the RuntimeData value been changed
>
> -- 
> 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/1bda1eb6-e73b-4d2f-9b2e-a61063b1f168n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jacoco/1bda1eb6-e73b-4d2f-9b2e-a61063b1f168n%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/b7d2435f-0434-4551-8c81-220be0f426adn%40googlegroups.com.

Reply via email to