FasterXML / FasterXML/jackson-module-kotlin
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.
Open
bug
value class
- Dominant language
- Kotlin
- Stars
- 1.2k
- Forks
- 187
- Avg merge
- 9h 48m
- Merged PRs (30d)
- 16
Description
### 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.
```kotlin
@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_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.