So I\'m getting these errors
[junit] Illegal local variable table length 17 in method test.nz.ac.massey.cs.sdc.log4jassignment.s06005586.AppenderLayoutTest.(
Sounds strange.
First, check your code to see if you have used new grammar features introduced in JDK 1.7, like try-with-resource
or diamond operator
.
I met this VerifyError before, when using cobertura. However, when I set -XX:-UseSplitVerifier
to the junit
task, it is resolved. I set it by specifying a
nested element to junit
task.
Also, most of the coverage libs seem to support JDK1.7 very poorly. However, Jacoco works fine with JDK1.7 so I am using it for now.