Hi Mike, 

theoretically this is possible, but this would require a significant
change to JaCoCo. Current implementation (and there are no palns to
change this) tracks coverage separately per class. Each class tracks its
own code coverage, other classes do not need to be instrumented. 

For you proposal we would need to instrument all call sites and in
addition also track the implementation class of of the object a method
is called on (think of overridden methods or interfaces). Also this will
not work for reflection. 

Regards,
-marc 

On 2018-05-10 16:09, Mike Nemo wrote:

> Thanks for your response. 
> However, even if JaCoCo may have difficulties to embed recording code into 
> native code, it can still try instrumenting java classes around every native 
> call it detects and be able to record native method invocation. That seems 
> doable, even though that may mean more work during instrumentation process. 
> Best regards, 
> Mike 
> 
> On Thu, May 10, 2018 at 1:41 AM, Marc Hoffmann <[email protected]> 
> wrote:
> Hi,
> 
> JaCoCo is pure Java solution and can instrument Java bytecode only. Therefore 
> we do not support coverage for native methods.
> 
> Regards,
> -marc
> 
> On 2018-05-09 23:44, JNIdev wrote:
> It does not look like EclEmma collects information about native call
> invocation.
> Is there a way in EclEmma to collect information about the
> number/percentage of all methods including native methods executed
> during a java project run? 
> -- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "JaCoCo and EclEmma Users" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/jacoco/enaEZ_xTh_g/unsubscribe [1].
> To unsubscribe from this group and all its topics, send an email to 
> [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jacoco/5e0842a999e343664ef71f8e39dbf9a6%40mountainminds.com
>  [2]. 
> 
> For more options, visit https://groups.google.com/d/optout [3].

 -- 
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/CADnW9pwFAoPSr_DedZK8hVEGC0U0jDPn%3D9G8Ax3zewGAVXnBbQ%40mail.gmail.com
[4].
For more options, visit https://groups.google.com/d/optout. 

 

Links:
------
[1] https://groups.google.com/d/topic/jacoco/enaEZ_xTh_g/unsubscribe
[2]
https://groups.google.com/d/msgid/jacoco/5e0842a999e343664ef71f8e39dbf9a6%40mountainminds.com
[3] https://groups.google.com/d/optout
[4]
https://groups.google.com/d/msgid/jacoco/CADnW9pwFAoPSr_DedZK8hVEGC0U0jDPn%3D9G8Ax3zewGAVXnBbQ%40mail.gmail.com?utm_medium=email&amp;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/035b24a0a0209a659d02ab461a769774%40mountainminds.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to