#481 java.lang.VerifyError

v4.9
open
nobody
None
9
2014-02-07
2013-10-27
javaten10
No

version 4.9

java.lang.VerifyError: Bad type on operand stack in method xxx

after add -dontoptimize, got a different error:

java.lang.VerifyError: Inconsistent stackmap frames at branch target 127 ..

Tried 4.10, same error.

Discussion

  • javaten10
    javaten10
    2013-10-27

    Java version 1.7.0_25

    -dontnote
    -dontskipnonpubliclibraryclasses

    -dontshrink
    -dontoptimize

    --stack trace ------
    java.lang.VerifyError: Inconsistent stackmap frames at branch target 124 in method xxx
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2413)
    at java.lang.Class.getConstructor0(Class.java:2723)
    at java.lang.Class.newInstance0(Class.java:345)
    at java.lang.Class.newInstance(Class.java:327)

     
    Last edit: javaten10 2013-10-27
  • Eric Lafortune
    Eric Lafortune
    2013-11-01

    Thanks for the report. Do you have a sample that allows me to reproduce the problem? If you prefer, you can mail it to me.

     
  • javaten10
    javaten10
    2014-02-07

    I was able to workaround it by:

    comment out -dontoptimize
    -optimizations !method/inlining/unique, !code/allocation/variable

    -dontoptimize will cause the error, but it should not do any optimizations.

    Thanks.

     
    Last edit: javaten10 2014-02-07