FasterXML / jackson-module-kotlin

Module that adds support for serialization/deserialization of Kotlin (http://kotlinlang.org) classes and data classes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

k163377 opened this issue · comments

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