Thanks Marc.

2014-10-28 8:16 GMT+01:00 Marc R. Hoffmann <[email protected]>:

> Hi Julien,
>
> right, the technical reason is that on Java byte code booleans are
> represented as integer value 0 and 1 and the second line reads in bytecode
> like
>
>     opts.setVeryQuiet(LOG.isDebugEnabled() == 0 ? 1 : 0);
>
> Future versions of JaCoCo might implement some filtering, I listed your
> case a kandiate for such a filter:
>
>     https://github.com/jacoco/jacoco/wiki/FilteringOptions
>
> Best regards,
> -marc
>
> On 27.10.14 11:39, [email protected] wrote:
>
>> Hi here,
>>
>> I'm having a strange behavior with following code:
>>
>> opts.setTraceExecution(LOG.isDebugEnabled());
>> opts.setVeryQuiet(!LOG.isDebugEnabled());
>>
>> http://www.image-share.com/upload/2739/182.png
>>
>> The first statement is not considered as a branch while the second one is.
>>
>> I was said this is because of bytecode produced by the compiler but from
>> a user point of view "this is implementation details" ;).
>>
>> Either any method accepting a boolean parameter should be considered as a
>> branch, or not. Here it seems to be a mix depending on the presence of "!".
>>
>> Do you think something could be done here?
>>
>> Regards,
>>
>> Julien
>>
>>
> --
> 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/B2Ia3dRx4e4/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> 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