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

Fix handling of vararg deserialization #743

Merged
merged 5 commits into from Dec 30, 2023
Merged

Conversation

k163377
Copy link
Contributor

@k163377 k163377 commented Dec 30, 2023

Previously, if the input was undefined for a vararg argument, it was treated as if null had been entered.
This is the same behavior as with databind.
On the other hand, in Kotlin, the vararg argument is always non-null, which causes an error.

Therefore, vararg arguments are now treated as if they were arguments with an empty array as the default value.
This allows deserialization even if the input to the vararg argument is undefined.
In addition, vararg arguments are now basically treated as non-required.

from: ProjectMapK/jackson-module-kogera#197

@k163377 k163377 merged commit f1ec80b into FasterXML:2.17 Dec 30, 2023
12 checks passed
@k163377 k163377 deleted the fix-vararg branch December 30, 2023 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant