Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
k163377 opened this issue Jan 20, 2024 · 0 comments

Comments

@k163377
Copy link
Contributor

k163377 commented Jan 20, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant