Skip to content

tnleeuw/kotlin-1.1.3-noarg-bug

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kotlin-1.1.3-noarg-bug

Reproducible test case for KT-18667, derived from the test case for KT-18649 (Github)

Running

Try to compile the code with:

./gradlew clean build

This fails with error:

Error:Kotlin: [Internal Error] java.lang.ClassCastException: org.jetbrains.kotlin.descriptors.SourceElement$1 cannot be cast to org.jetbrains.kotlin.resolve.source.PsiSourceElement
	at org.jetbrains.kotlin.codegen.inline.InlineCodegenUtilsKt.getSourceFilePath(inlineCodegenUtils.kt:35)
	at org.jetbrains.kotlin.codegen.inline.InlineCodegen.reportIncrementalInfo(InlineCodegen.java:1040)
	at org.jetbrains.kotlin.codegen.inline.InlineCodegen.<init>(InlineCodegen.java:143)
	at org.jetbrains.kotlin.codegen.ExpressionCodegen.getOrCreateCallGenerator(ExpressionCodegen.java:2299)

(rest of exception stacktrace removed)

Changes

Modify build.gradle to either:

  • change kotlinVersion to 1.1.2-2
  • comment out kotlin-jpa

Both changes will cause the build to succeed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 100.0%