java.lang.VerifyError

Inconsistent stackmap frames at branch target 41 Exception Details: Location: badClass.eval()V @41: iinc Reason: Type top (current frame, locals[4]) is not assignable to integer (stack map, locals[4]) Current Frame: bci: @35 flags: { } locals: { 'badClass', top, top, top, top, integer, integer, integer, integer, integer } stack: { integer } Stackmap Frame: bci: @41 flags: { } locals: { 'badClass', top, top, top, integer, integer, integer, integer, integer } stack: { } Bytecode: 0x0000000: 0499 0009 0387 48a7 0006 0387 4a03 3605 0x0000010: 1505 05a2 001c 0336 0603 3607 0336 0803 0x0000020: 3609 0499 0006 0336 0a84 0501 a7ff e4b1 0x0000030: Stackmap Table: same_frame(@10) same_frame(@13) full_frame(@16,{Object[#2],Top,Top,Top,Top,Integer},{}) full_frame(@41,{Object[#2],Top,Top,Top,Integer,Integer,Integer,Integer,Integer},{}) full_frame(@47,{Object[#2],Top,Top,Top,Top,Integer},{})

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web459

  • via Unknown by Alexey Kuznetsov,
  • via GitHub by 0x6e6562
    ,
  • via GitHub by NitroxydeX
    ,
  • Stack trace

    • java.lang.VerifyError: Inconsistent stackmap frames at branch target 41 Exception Details: Location: badClass.eval()V @41: iinc Reason: Type top (current frame, locals[4]) is not assignable to integer (stack map, locals[4]) Current Frame: bci: @35 flags: { } locals: { 'badClass', top, top, top, top, integer, integer, integer, integer, integer } stack: { integer } Stackmap Frame: bci: @41 flags: { } locals: { 'badClass', top, top, top, integer, integer, integer, integer, integer } stack: { } Bytecode: 0x0000000: 0499 0009 0387 48a7 0006 0387 4a03 3605 0x0000010: 1505 05a2 001c 0336 0603 3607 0336 0803 0x0000020: 3609 0499 0006 0336 0a84 0501 a7ff e4b1 0x0000030: Stackmap Table: same_frame(@10) same_frame(@13) full_frame(@16,{Object[#2],Top,Top,Top,Top,Integer},{}) full_frame(@41,{Object[#2],Top,Top,Top,Integer,Integer,Integer,Integer,Integer},{}) full_frame(@47,{Object[#2],Top,Top,Top,Top,Integer},{}) at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671) at java.lang.Class.getConstructor0(Class.java:3075) at java.lang.Class.newInstance(Class.java:412) at com.company.Main.main(Main.java:31) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    esaaresaar
    Once,
    Unknown visitor
    Unknown visitorOnce,
    asvidasvid
    10 times, last one
    Unknown visitor
    Unknown visitorOnce,
    AkshayAkshay
    2 times, last one
    25 more bugmates