Getting error “Illegal local variable table length 5 in method” with Junit using Java version 7

By ongraph
December 27, 2013 | 1087 Views

Latest Industry insights to keep you updated on the latest happenings.

I was facing a strange issue while running Junit test cases using Java 1.7 + ant.

I debugged a lot but was not able to find a solution using ant + junit.

 

 

I made changes to my Junit target and added in jvm args “-XX:-UseSplitVerifier

 

I was able to get rid of the problem.

Issue was mainly due to Java Byte code.

Monthly industry insights to keep you updated on latest happenings

Follow us on Twitter
Follow us on Facebook
Follow us on Linkedin