https://kotlinlang.org logo
#eap
Title
# eap
s

sdeleuze

01/23/2017, 5:44 PM
Copy code
Error:Kotlin: [Internal Error] org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: Couldn't inline method call 'getBean' into
local final fun <anonymous>(it: org.springframework.context.ApplicationContext): org.springframework.context.support.GenericApplicationContextExtensionsTests.BeanB defined in org.springframework.context.support.GenericApplicationContextExtensionsTests.registerBeanWithGradleStyleApi.<anonymous>[AnonymousFunctionDescriptor@4382f79e]
{ BeanB(it.getBean<BeanA>()) }
Cause: Not generated
Cause: Cannot inline bytecode of class org/springframework/beans/factory/BeanFactoryExtensionsKt which has version 52. This compiler can only inline Java 1.6 bytecode (version 50)
File being compiled and position: (65,28) in /Users/seb/Workspace/spring-framework/spring-context/src/test/kotlin/org/springframework/context/support/GenericApplicationContextExtensionsTests.kt
PsiElement: getBean<BeanA>()
The root cause was thrown at: InlineCodegenUtil.java:151
	at org.jetbrains.kotlin.codegen.inline.InlineCodegen.throwCompilationException(InlineCodegen.java:203)
	at org.jetbrains.kotlin.codegen.inline.InlineCodegen.genCallInner(InlineCodegen.java:189)
	at org.jetbrains.kotlin.codegen.CallGenerator.genCall(CallGenerator.kt:104)
	at org.jetbrains.kotlin.codegen.ExpressionCodegen.invokeMethodWithArguments(ExpressionCodegen.java:2900)
	at org.jetbrains.kotlin.codegen.ExpressionCodegen.invokeMethodWithArguments(ExpressionCodegen.java:2845)
	at org.jetbrains.kotlin.codegen.Callable$invokeMethodWithArguments$1.invoke(Callable.kt:44)
	at org.jetbrains.kotlin.codegen.Callable$invokeMethodWithArguments$1.invoke(Callable.kt:23)
	...