score:0

Apparently, this is a JDK compiler bug #8006684

I just hit a similar problem in my Scala project:

Exception in thread "main" java.lang.RuntimeException: Exception in Application start method
    at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:894)
    at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:56)
    at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:158)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.VerifyError: Bad type on operand stack
Exception Details:
  Location:
    db/DB.string$1(Ljava/lang/String;)Ljava/lang/String; @107: invokespecial
  Reason:
    Type 'java/lang/String' (current frame, stack[3]) is not assignable to 'db/DB'
  Current Frame:
    bci: @107
    flags: { }
    locals: { 'java/lang/String', 'java/lang/String', integer }
    stack: { 'scala/collection/Iterator', uninitialized 102, uninitialized 102, 'java/lang/String' }
  Bytecode:
    0000000: 129d 2a4c 59c7 000b 572b c600 0da7 000e
    0000010: 2bb6 014f 9900 072a a700 60b2 0154 b200
    0000020: 7e2a b601 5703 b601 5b3d 1caa 0000 0011
    0000030: 0000 0001 0000 0001 0000 0015 2aa7 003b
    0000040: bb01 5d59 b200 7ebb 015d 59b2 007e 2ab6
    0000050: 0157 b701 5e04 b601 61c0 0099 b601 57b7
    0000060: 015e 05b6 0165 bb01 6759 2ab7 016a b901
    0000070: 6e02 00b9 0171 0100 b0                 
  Stackmap Table:
    full_frame(@16,{Object[#153],Object[#153]},{Object[#153]})
    same_frame(@23)
    same_frame(@27)
    append_frame(@60,Integer)
    same_frame(@64)
    full_frame(@120,{Object[#153],Object[#153]},{Object[#153]})

    at global.State$.<init>(State.scala:14)
...

Related Query

More Query from same tag