Compiling my instrumented sources fails with a 'code too large' error.

A single Java method cannot compile to more than 64KB of byte code. As Clover adds statements to record code coverage to every statement in your source file, a method which is close to this limit may exceed it when instrumented. The solutions at present are:

  1. As a work-around, split your method into two smaller ones. Or;
  2. Exclude the entire file using the <files> element of <clover-setup>.
Last modified on Dec 4, 2008

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.