Expecting a stackmap frame at branch target
Alan Bateman
Alan.Bateman at oracle.com
Mon Sep 12 05:52:43 PDT 2011
Frédéric Camblor wrote:
> Hi everyone !
>
> I just migrated to openjdk 7 on my project and, just after the upgrade, most
> of my unit test were in failure, throwing following exception :
>
> java.lang.VerifyError: Expecting a stackmap frame at branch target 81
> in method fr.fsh.bbeeg.common.config.BBEEGConfiguration.<init>()V at
> offset 44
>
>
> When I go back to jdk 6, every tests are back to green :-)
>
Use od -x to look at the class file to see which class version it is.
Class files >= version 51 are verified (exclusively) by the type
checking verifier whereas with version 50 then if the verification fails
it falls back to the old type inferencing verifier. If you have
something modifying the class files then maybe it isn't updating the
stack map tables and that would explain the error. For your jdk6 test
runs then try running with -XX:-FailOverToOldVerifier and see if fails too.
-Alan.
More information about the jdk7-dev
mailing list