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

Add default KeyDeserializer for value class #910

Merged
merged 4 commits into from
Feb 2, 2025
Merged

Conversation

k163377
Copy link
Contributor

@k163377 k163377 commented Feb 2, 2025

Previously, if a value class was used as a key for a Map, a custom KeyDeserializer had to be provided for each.
With this change, a common KeyDeserializer can be used for simple boxing.

This change is based on the following
ProjectMapK/jackson-module-kogera#224

Also, there was a problem that KeyDeserializer registered by annotation was overwritten by common KeyDeserializer, which will be solved in 2.18.3.
FasterXML/jackson-databind#4444

This PR closes #777.

@k163377 k163377 merged commit 1622a77 into FasterXML:2.19 Feb 2, 2025
15 checks passed
@k163377 k163377 deleted the 777 branch February 2, 2025 12:39
k163377 added a commit to k163377/jackson-module-kotlin that referenced this pull request Feb 9, 2025
The actual implemented is KeyDeserializer
k163377 added a commit that referenced this pull request Feb 9, 2025
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.

Cannot use value class as map key in 2.17
1 participant