Understanding how to resolve “Inconsistent stackmap frames” exception

前端 未结 1 893
一整个雨季
一整个雨季 2021-01-13 08:52

I get an exception on startup of the web application as guice is trying to construct the class mentioned.

java.lang.VerifyError: Inconsistent stackmap frames         


        
1条回答
  •  -上瘾入骨i
    2021-01-13 09:16

    To find the version of a classfile, just look at the 8th byte of the classfile. It will be 51 for Java 7 classes. A framework like ASM will do this for you.

    As far as the error goes, it means your classfile is malformed. How did you create these classes? Did you do any bytecode manipulation? If so, you probably have a bug in your code.

    0 讨论(0)
提交回复
热议问题