zeugederunity
05/25/2021, 12:47 PMjava.lang.IllegalStateException: Class Instant have constructor parameters which are not properties and therefore it is not serializable automatically
at org.jetbrains.kotlinx.serialization.compiler.backend.common.SerializerCodegen.checkSerializability(SerializerCodegen.kt:28)
at org.jetbrains.kotlinx.serialization.compiler.backend.common.SerializerCodegen.generateSerializableClassPropertyIfNeeded(SerializerCodegen.kt:101)
at org.jetbrains.kotlinx.serialization.compiler.backend.common.SerializerCodegen.generate(SerializerCodegen.kt:34)
I allready created a minimal Example at: https://github.com/FelixEngl/FailingInstantSerialisation
Does anyone know how to fix this?zeugederunity
05/25/2021, 1:00 PM@Serializer(forClass = Instant::class)
from the InstantSerializer
.
If someone is already looking into the error, thank you.russhwolf
05/25/2021, 1:46 PMzeugederunity
05/25/2021, 1:55 PMzeugederunity
05/25/2021, 1:59 PM