Zakir
04/27/2023, 12:30 PMKotlin: [Internal Error] org.jetbrains.kotlin.backend.common.CompilationException: Back-end: Please report this problem <https://kotl.in/issue>
/Users/zakirsaifi/Office/alfred/transactions/persistence/src/main/kotlin/com/syfe/alfred/TransactionsExtensions.kt:-1:-1
Details: Internal error in file lowering: java.lang.AssertionError: Error occurred while optimizing an expression:
CALL 'public open fun <get-createdAt> (): java.util.Date? [fake_override] declared in com.syfe.alfred.models.Transaction' type=java.util.Date? origin=GET_PROPERTY
$this: GET_VAR '<this>: com.syfe.alfred.models.Transaction declared in com.syfe.alfred.toTransactionDto' type=com.syfe.alfred.models.Transaction origin=null
full error log is in the file
val jvmTargetVal = JVM_17
java.sourceCompatibility = JavaVersion.VERSION_17
tasks.withType<KotlinCompile> {
compilerOptions {
freeCompilerArgs.set(listOf("-Xjsr305=strict"))
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17)
languageVersion.set(KotlinVersion.KOTLIN_2_0)
}
}
val compileTestKotlin: KotlinCompile by tasks
compileTestKotlin.compilerOptions.jvmTarget.set(jvmTargetVal)
compileTestKotlin.compilerOptions.freeCompilerArgs.set(listOf("-Xjsr305=strict"))
mglukhikh
04/27/2023, 12:32 PMZakir
04/27/2023, 12:35 PMmglukhikh
04/27/2023, 12:35 PMIvan Kylchik
04/27/2023, 12:41 PMmglukhikh
04/27/2023, 12:45 PMcreatedAt: java.util.Date?
property from the file TransactionsExtensions.kt
in your code. If minimization will be not possible, then please share the piece of code around this property access.