https://kotlinlang.org logo
#jvm-ir-backend-feedback
Title
# jvm-ir-backend-feedback
r

ralf

02/10/2021, 8:19 PM
We started to test the new backend and see a lot of red due to the Parcelize plugin? Is this a known issue? Happy to file a ticket if none exists (I wanted to double check first).
Copy code
e: java.lang.IndexOutOfBoundsException: Empty list doesn't contain element at index 0.
	at kotlin.collections.EmptyList.get(Collections.kt:36)
	at kotlin.collections.EmptyList.get(Collections.kt:24)
	at org.jetbrains.kotlin.backend.common.ir.IrUtilsKt.remapTypeParameters(IrUtils.kt:330)
	at org.jetbrains.kotlin.backend.common.ir.IrUtilsKt.remapTypeParameters(IrUtils.kt:343)
	at org.jetbrains.kotlin.backend.common.ir.IrUtilsKt.copyTo$default(IrUtils.kt:121)
	at org.jetbrains.kotlin.ir.builders.declarations.DeclarationBuildersKt.addFunction(declarationBuilders.kt:188)
	at org.jetbrains.kotlin.ir.builders.declarations.DeclarationBuildersKt.addFunction$default(declarationBuilders.kt:164)
	at org.jetbrains.kotlin.parcelize.ir.ParcelizeIrTransformer.addOverride(ParcelizeIrTransformer.kt:279)
	at org.jetbrains.kotlin.parcelize.ir.ParcelizeIrTransformer.visitClass(ParcelizeIrTransformer.kt:115)
i

Ivan Kubyshkin [JetBrains]

02/11/2021, 7:33 AM
Looks like we don't have an issue with this problem. Can you file it in YouTrack, please?
u

udalov

02/11/2021, 1:23 PM
If the issue is not reproducible without Parcelize, I suppose it should be reported to the Google issue tracker instead? (https://android-developers.googleblog.com/2020/11/the-future-of-kotlin-android-extensions.html)
r

ralf

02/12/2021, 1:32 AM
@Ivan Kubyshkin [JetBrains] Done: https://youtrack.jetbrains.com/issue/KT-44891 I’ve also attached a sample project. @udalov Parcelize is part of the Kotlin codebase. The coordinates hint that JetBrains owns it:
org.jetbrains.kotlin.plugin.parcelize
. Do you think it’s better to file a ticket for Android?
🙏 1
e

Eugene

02/12/2021, 1:11 PM
@ralf yep, it's owned by Google. By some tech reasons we decided to keep it in our repository. And yes, it's better to address issues to Google tracker
r

ralf

02/14/2021, 9:29 PM
5 Views