Hi, I'm using serialization `0.10.1`. After update...
# serialization
p
Hi, I'm using serialization
0.10.1
. After update to Kotlin
1.3.30
from
1.3.21
I get this error:
Copy code
e: java.lang.IllegalStateException: Backend Internal error: Exception during code generation
Cause: org.jetbrains.kotlin.codegen.ErasedInlineClassBodyCodegen cannot be cast to org.jetbrains.kotlin.codegen.ImplementationBodyCodegen
It's caused by:
Copy code
@Serializable(with = TaskIdSerializer::class)
inline class TaskId(val value: Guid)

@Serializer(forClass = TaskId::class)
object TaskIdSerializer : KSerializer<TaskId> {
    override fun serialize(encoder: Encoder, obj: TaskId) = encoder.encodeString(obj.value)
    override fun deserialize(decoder: Decoder): TaskId = TaskId(decoder.decodeString())
}
Is there a repository with an eap version that I could try?
s
Sorry, inline classes does not support
@Serializable
annotations for now
p
But it worked with
1.3.21
Or is it intentionally disabled in
1.3.30
?
s
This behaviour is not specified, so unfortunately I can't give you any guarantees on which versions it can not work and on which can.
p
Okay