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
#761 2 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.