org.jetbrains.kotlin.codegen.CompilationException

Back-end (JVM) Internal error: Error generating constructors of class null with kind IMPLEMENTATION Cause: Error generating constructors of class null with kind IMPLEMENTATION File being compiled and position: (10,9) in /home/user/IdeaProjects/TestKt/src/test/Test.kt PsiElement: object : Outer.Inner() { override fun foo() { println("yes, ${this@test}!") } } The root cause was thrown at: ImplementationBodyCodegen.java:397

Solutions on the web51

  • Back-end (JVM) Internal error: Error generating constructors of class null with kind IMPLEMENTATION Cause: Error generating constructors of class null with kind IMPLEMENTATION File being compiled and position: (10,9) in /home/user/IdeaProjects
  • via YouTrack by Unknown author, 1 year ago
    Back-end (JVM) Internal error: Error generating constructors of class null with kind IMPLEMENTATION Cause: Error generating constructors of class null with kind IMPLEMENTATION File being compiled and position: (15,9) in /Simplest version.kt
  • Back-end (JVM) Internal error: Error generating constructors of class FooC with kind IMPLEMENTATION Cause: Error generating constructors of class FooC with kind IMPLEMENTATION File being compiled and position: (8,5) in /home/user/Personal/Kt/src/kt/ws/ws.kt PsiElement: class FooC : A.AB() The root cause was thrown at: ImplementationBodyCodegen.java:411
  • Stack trace

    • org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: Error generating constructors of class null with kind IMPLEMENTATION Cause: Error generating constructors of class null with kind IMPLEMENTATION File being compiled and position: (10,9) in /home/user/IdeaProjects/TestKt/src/test/Test.kt PsiElement: object : Outer.Inner() { override fun foo() { println("yes, ${this@test}!") } } The root cause was thrown at: ImplementationBodyCodegen.java:397 at org.jetbrains.kotlin.codegen.ExpressionCodegen.genQualified(ExpressionCodegen.java:312) at org.jetbrains.kotlin.codegen.ExpressionCodegen.genQualified(ExpressionCodegen.java:275) at org.jetbrains.kotlin.codegen.ExpressionCodegen.gen(ExpressionCodegen.java:318) at org.jetbrains.kotlin.codegen.ExpressionCodegen.gen(ExpressionCodegen.java:322) at org.jetbrains.kotlin.codegen.ExpressionCodegen.returnExpression(ExpressionCodegen.java:2232) at org.jetbrains.kotlin.codegen.FunctionGenerationStrategy$FunctionDefault.doGenerateBody(FunctionGenerationStrategy.java:49) at org.jetbrains.kotlin.codegen.FunctionGenerationStrategy$CodegenBased.generateBody(FunctionGenerationStrategy.java:69) at org.jetbrains.kotlin.codegen.FunctionCodegen.generateMethodBody(FunctionCodegen.java:392) at org.jetbrains.kotlin.codegen.FunctionCodegen.generateMethod(FunctionCodegen.java:218) at org.jetbrains.kotlin.codegen.FunctionCodegen.generateMethod(FunctionCodegen.java:150) at org.jetbrains.kotlin.codegen.FunctionCodegen.gen(FunctionCodegen.java:125) at org.jetbrains.kotlin.codegen.MemberCodegen.genFunctionOrProperty(MemberCodegen.java:190) at org.jetbrains.kotlin.codegen.PackagePartCodegen.generateBody(PackagePartCodegen.java:95) at org.jetbrains.kotlin.codegen.MemberCodegen.generate(MemberCodegen.java:127) at org.jetbrains.kotlin.codegen.PackageCodegen.generateFile(PackageCodegen.java:128) at org.jetbrains.kotlin.codegen.PackageCodegen.generate(PackageCodegen.java:63) at org.jetbrains.kotlin.codegen.KotlinCodegenFacade.generatePackage(KotlinCodegenFacade.java:99) at org.jetbrains.kotlin.codegen.KotlinCodegenFacade.doGenerateFiles(KotlinCodegenFacade.java:77) at org.jetbrains.kotlin.codegen.KotlinCodegenFacade.compileCorrectFiles(KotlinCodegenFacade.java:44) at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.generate(KotlinToJVMBytecodeCompiler.kt:432) at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules(KotlinToJVMBytecodeCompiler.kt:147) at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:168) at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:55) at org.jetbrains.kotlin.cli.common.CLICompiler.exec(CLICompiler.java:206) at org.jetbrains.kotlin.cli.common.CLICompiler.exec(CLICompiler.java:154) at org.jetbrains.kotlin.cli.common.CLICompiler.execAndOutputXml(CLICompiler.java:73) at org.jetbrains.kotlin.daemon.CompileServiceImpl$remoteIncrementalCompile$1.invoke(CompileServiceImpl.kt:247) at org.jetbrains.kotlin.daemon.CompileServiceImpl$remoteIncrementalCompile$1.invoke(CompileServiceImpl.kt:70) at org.jetbrains.kotlin.daemon.CompileServiceImpl$doCompile$1$1.invoke(CompileServiceImpl.kt:421) at org.jetbrains.kotlin.daemon.CompileServiceImpl$doCompile$1$1.invoke(CompileServiceImpl.kt:70) at org.jetbrains.kotlin.daemon.common.DummyProfiler.withMeasure(PerfUtils.kt:137) at org.jetbrains.kotlin.daemon.CompileServiceImpl.checkedCompile(CompileServiceImpl.kt:454) at org.jetbrains.kotlin.daemon.CompileServiceImpl.access$checkedCompile(CompileServiceImpl.kt:70) at org.jetbrains.kotlin.daemon.CompileServiceImpl$doCompile$1.invoke(CompileServiceImpl.kt:420) at org.jetbrains.kotlin.daemon.CompileServiceImpl$doCompile$1.invoke(CompileServiceImpl.kt:70) at org.jetbrains.kotlin.daemon.CompileServiceImpl.ifAlive(CompileServiceImpl.kt:565) at org.jetbrains.kotlin.daemon.CompileServiceImpl.ifAlive$default(CompileServiceImpl.kt:504) at org.jetbrains.kotlin.daemon.CompileServiceImpl.doCompile(CompileServiceImpl.kt:411) at org.jetbrains.kotlin.daemon.CompileServiceImpl.remoteIncrementalCompile(CompileServiceImpl.kt:244) 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:497) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:323) at sun.rmi.transport.Transport$1.run(Transport.java:200) at sun.rmi.transport.Transport$1.run(Transport.java:197) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:196) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$241(TCPTransport.java:683)

    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

    Unknown user
    Once, 1 year ago