Hi there! Tried Kotlin 1.5.0 today. When running the tests in one particular backend I get this exception:
java.lang.ClassCastException: class [[Ljava.lang.Object; cannot be cast to class [[Ljava.lang.String; ([[Ljava.lang.Object; and [[Ljava.lang.String; are in module java.base of loader 'bootstrap')
at edu.upc.groups.service.adapter.GroupTemplateApi$$serializer.deserialize(GroupApiRestDomainMapping.kt:75)
at edu.upc.groups.service.adapter.GroupTemplateApi$$serializer.deserialize(GroupApiRestDomainMapping.kt:75)
at kotlinx.serialization.json.internal.PolymorphicKt.decodeSerializableValuePolymorphic(Polymorphic.kt:63)
The serializable class is (working perfectly in previous Kotlin version)
@Serializable
internal class GroupTemplateApi(
val id: String,
val expression: String,
val attributes: Array<String>,
val records: Array<Array<String>>,
val owner: Int,
)
What do you thing, I should file a bug? Kotlin? Serialize library? I already tried to clean and reset caches.