Hi Marc,

First, apologies, but I'm not at liberty to share code here from this 
project, hope you understand. But, the method the coverage browser lands on 
has a try-catch with some if blocks. 

However, I was just thinking that this might have something to do with 
Spock, the testing framework I use here. The test spec is currently 
employing Spock's Java mocking facility for certain behavior. This probably 
means that Spock itself wraps code under testing with some stuff, like a 
static initializer for instance.

>|

On Wednesday, August 6, 2014 11:03:38 PM UTC-5, Marc R. Hoffmann wrote:
>
>  Hi Carlos,
>
> JaCoCo does not use any cache.
>
> Maybe you observe a compiler artifact here: For certain language 
> constructs (e.g. switch on enums) the Java compiler creates a static 
> initializer. Can you provide the source of the method where the coverage 
> browser jumps to?
>
> Best regards,
> -marc
>
> On 07.08.14 00:19, Carlos wrote:
>  
> First, the tool stack: Java 7, Gradle 1.11, Jacoco plugin with 
> toolversion=0.7+, Spock 0.7+ with JUnit 4.8+ 
>
>  This particular class used to have a static initializer, as in "static 
> {..}", but was removed some time ago. As a matter of fact, it was probably 
> removed BEFORE I added the Jacoco plugin to the Gradle build.
>
>  Nevertheless, I've just now noticed that for whatever reason, Jacoco 
> seems to be working with the version of this class that may have this 
> static block still. It reports the coverage and branches-missed percentage, 
> but when clicked on, the coverage browser takes you to inside a method in 
> that class, not having anything to do with this long gone static block.
>
>  Is there special cache location that could be the source of my troubles 
> here or something bigger I'm missing?
>  -- 
> 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] <javascript:>.
> For more options, visit https://groups.google.com/d/optout.
>
>
>
>  

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to