Another thought: running jacoco injects code for measuring coverage.
* Sample project: https://gitlab.com/mfriedenhagen/jacocosize
* Clone this project and run "mvn clean compile".
* On my machine the size of
target/classes/de/friedenhagen/jacocosize/App.class is 785 bytes.
* Running "mvn clean test-compile" will instrument the file
"statically" instead of on the fly.
* Now the above class has a size of 1028 bytes.
* According to http://stackoverflow.com/a/17422590/49132 the maximal
size of byte code in a Java method is 64K.

Maybe you are hitting this limit when JaCoCo instruments your classes?

Regards
Mirko
Regards Mirko
--
http://illegalstateexception.blogspot.com/
https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen)
https://bitbucket.org/mfriedenhagen/


On Thu, Feb 9, 2017 at 9:21 PM, Marc R. Hoffmann
<[email protected]> wrote:
> Hi,
>
> please as a first step update to our latest release 0.7.9. This release
> contains a fix specifically for large methods.
>
> If the problem persists, please provide the full stack trace of exception.
>
> Regards,
> -marc
>
> On 09.02.17 21:16, [email protected] wrote:
>>
>> I am successfully using Jacoco except one issue. Jacoco throws errors when
>> method body is very large. Is there any limitation on number of lines in a
>> method? If yes can we increase that limit? Unfortunately, there are so many
>> such methods in my project and splitting them is a big and tedious task.
>>
>> So I am looking for any alternate solution. Any help would be highly
>> appreciated.
>>
>
> --
> 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/bc44ef5f-eb8c-3278-3503-6bea82bcedbe%40mountainminds.com.
>
> 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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/CAK8jvqyJiD%2BAF_r7qgztGF90QA2tXMt5f6-a%2B9fZH9%3Dk-NS_%2BQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to