Runtime error calling .javaClass


#1

The following compiled, but has runtime exception when run

``

fun main(args : Array<String>) {
     println(123.99.javaClass)
}

``

Exception in thread “main” java.lang.VerifyError: (class: namespace, method: main signature: ([Ljava/lang/String;)V) Attempt to split long or double on the stack
     at java.lang.Class.getDeclaredMethods0(Native Method)
     at java.lang.Class.privateGetDeclaredMethods(Class.java:2442)
     at java.lang.Class.getMethod0(Class.java:2685)
     at java.lang.Class.getMethod(Class.java:1620)
     at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:492)
     at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:484)

Bug?

Zemian


#2

Yes, it is a bug. Please report to the tracker.


#3

http://youtrack.jetbrains.com/issue/KT-3046