#35 cglib unit tests fail with java7

open
nobody
None
5
2011-11-08
2011-11-08
Anonymous
No

Failed to invoke suite():java.lang.VerifyError: Expecting a stackmap frame at branch target 36 in method net.sf.cglib.transform.impl.TestProvideFields.getField(Ljava/lang/String;)Ljava/lang/Object; at offset 6

When running with -novierify jvm option the tests pass. So the generated code is close to correct, but the newer stricter verifier is not happy with cglib generated code.

This bug is the root cause why other projects relying on cglib start to fail when running with java7.

Discussion


  • Anonymous
    2012-05-16

    I was able to sucessfully build and test cglib by ensuring that all code was complied to target Java 1.5.