Module that adds support for serialization/deserialization of Kotlin (http://kotlinlang.org) classes and data classes.
Apache License 2.0
1.12k
stars
175
forks
source link
If a creator parameter contains a `value class` that wraps nullable and is non-null and has a default value, deserialization using the default argument will fail. #761
This will become a problem after deserialization support for value class is realized in the future.
The cause is kotlin-reflect, which is difficult to fix in jackson-module-kotlin.
https://youtrack.jetbrains.com/issue/KT-57357
To Reproduce
This problem occurs when deserializing a class like D below.
@JvmInline
value class NullableObject(val v: String?)
data class D(val v: NullableObject = NullableObject(""))
Describe the bug
This will become a problem after deserialization support for
value class
is realized in the future. The cause iskotlin-reflect
, which is difficult to fix injackson-module-kotlin
. https://youtrack.jetbrains.com/issue/KT-57357To Reproduce
This problem occurs when deserializing a class like
D
below.Expected behavior
No response
Versions
No response
Additional context
No response