Hi there! Tried Kotlin 1.5.0 today. When running t...
# announcements
j
Hi there! Tried Kotlin 1.5.0 today. When running the tests in one particular backend I get this exception:
Copy code
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)
Copy code
@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.
n
i also had trouble with kotlin 1.5 in scripting i wrote in the relevant channel and asked for one JB employee to look at it he opened a bug
a
Please report a bug to http://kotl.in/issue with a sample project to reproduce. Thanks!
j