The smallest reproducible version of the problem I...
# serialization
a
The smallest reproducible version of the problem I'm having is this:
Copy code
@Serializable
open class Box<T>(val contents: T)

@Serializable
class StringBox(
    private val data: String
) : Box<String>(data)

fun main() {
    println(
        Json.encodeToString(
            StringBox("Kotlin")
        )
    )
}
and I still get a
java.lang.IndexOutOfBoundsException
. Is this a bug in the serialization compiler code?