Showing posts with label Illegal local variable. Show all posts
Showing posts with label Illegal local variable. Show all posts

Thursday, August 16, 2012

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

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

I debug a lot but 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.