You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Serializable
data class ByteHolder(val a: Byte)
@Test
fun test() {
val element = Json.decodeFromString<JsonElement>("""{"a": 1111}""")
println(Json.decodeFromJsonElement<ByteHolder>(element))
}
Expected behaviour: SerializationException is thrown
Actual behaviour: ByteHolder(a=87) is printed
The text was updated successfully, but these errors were encountered:
Reproducer:
Expected behaviour:
SerializationException
is thrownActual behaviour:
ByteHolder(a=87)
is printedThe text was updated successfully, but these errors were encountered: