Hi,

On Tuesday, July 2, 2019 at 3:12:52 PM UTC+2, [email protected] wrote:
>
> Hi all.
>
> I'm using try-with-resources and JaCoCo reports a large number of missed 
> branches.  I'm using JaCoCo version 0.8.2, which includes the JAVAC.TRYWITH 
> filter.  I understand that this filter is unconditionally on, but it 
> doesn't seem to be working. 
>
A little research into the filter seems to indicate that this is for Java 
> 11, and I'm using Java 8. 
>
Is this the reason I'm seeing the missed branches?
>

No, this can't be the reason, because
for javac versions from 7 to 10 we have 
https://github.com/jacoco/jacoco/blob/v0.8.2/org.jacoco.core/src/org/jacoco/core/internal/analysis/filter/TryWithResourcesJavacFilter.java
for javac versions starting from 11 we have 
https://github.com/jacoco/jacoco/blob/v0.8.2/org.jacoco.core/src/org/jacoco/core/internal/analysis/filter/TryWithResourcesJavac11Filter.java
for ecj we have 
https://github.com/jacoco/jacoco/blob/v0.8.2/org.jacoco.core/src/org/jacoco/core/internal/analysis/filter/TryWithResourcesEcjFilter.java
 

In order to investigate please provide complete reproducer,
or at least source file and corresponding class file.
 

> Thanks.
>
> -Mark
>

-- 
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/fb9c0d7c-67d9-492e-9d68-b621a16e1a55%40googlegroups.com.

Reply via email to