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.
Opened this issue · 0 comments
k163377 commented
Describe the bug
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(""))
Expected behavior
No response
Versions
No response
Additional context
No response