Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

    Your stack trace compared to the selected pattern

    Jump to solutionsExpand frames
    org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: wrong code Error at instruction 23: Incompatible stack heights bytecode: @Lorg/jetbrains/annotations/NotNull;() // invisible, parameter 0 L0 ALOAD 0 LDC "args" INVOKESTATIC kotlin/jvm/internal/Intrinsics.checkParameterIsNotNull (Ljava/lang/Object;Ljava/lang/String;)V L1 LINENUMBER 12 L1 ACONST_NULL ASTORE 1 INVOKESTATIC kotlin/jvm/internal/InlineMarker.beforeInlineCall ()V NOP L2 LINENUMBER 8 L2 GETSTATIC com/github/vmironov/CrashMe.INSTANCE : Lcom/github/vmironov/CrashMe; ALOAD 1 DUP IFNULL L3 GOTO L4 L3 POP ACONST_NULL GOTO L5 L4 INVOKEVIRTUAL com/github/vmironov/CrashMe.crash (Ljava/lang/Object;)Ljava/lang/Object; GOTO L5 L5 INVOKESTATIC kotlin/jvm/internal/InlineMarker.afterInlineCall ()V POP L6 LINENUMBER 13 L6 RETURN L7 LOCALVARIABLE value$iv Ljava/lang/Object; L2 L5 1 LOCALVARIABLE $i$f$crashMe I L2 L5 2 LOCALVARIABLE args [Ljava/lang/String; L0 L7 0 MAXSTACK = 3 MAXLOCALS = 3 Cause: Error at instruction 23: Incompatible stack heights File being compiled and position: (11,1) in /Users/mironov/Development/research/hello-kotlin/src/main/java/com/github/vmironov/Main.kt PsiElement: fun main(args: Array<String>) { crashMe<String>(null) } The root cause was thrown at: MethodAnalyzer.kt:113
        at org.jetbrains.kotlin.codegen.FunctionCodegen.endVisit(
        at org.jetbrains.kotlin.codegen.FunctionCodegen.generateMethod(
        at org.jetbrains.kotlin.codegen.FunctionCodegen.generateMethod(
        at org.jetbrains.kotlin.codegen.FunctionCodegen.gen(
    39 frames hidden