java
java copied to clipboard
Kotlin immutable list causes exception
If I try to read an Any as a Kotlin data class that contains an immutable list, I get an error on ReflectionCollectionDecoder.decode_ line 44: col.clear()
Example data class that causes the error:
data class Example(val problem: listOf<Int>())
See #55
I have no experience of kotlin. Any one can help on this?
listOf<Whatever>() returns an immutable implementation of empty list, which is like Java's emptyList().