Skip to content

Use Parser-bound DeserializationContext for parsing type hints in TypeResolver - #3404

Closed
mp911de wants to merge 4 commits into
mainfrom
issue/3396
Closed

Use Parser-bound DeserializationContext for parsing type hints in TypeResolver#3404
mp911de wants to merge 4 commits into
mainfrom
issue/3396

Conversation

@mp911de

@mp911de mp911de commented Jul 28, 2026

Copy link
Copy Markdown
Member

We now use the deserialization context bound to the JSON parser instead of using the unbound and generic Mapper DeserializationContext that is actually only visible for testing.

Also, use StdTypeResolverBuilder if possible to defer _deserializationContext() access.

Closes #3396

mp911de added 3 commits July 28, 2026 16:28
…TypeResolver`.

We now use the deserialization context bound to the JSON parser instead of using the unbound and generic Mapper DeserializationContext that is actually only visible for testing.
Add Jackson 2 test, move off _deserializationContext where possible.
@mhalbritter

Copy link
Copy Markdown
Contributor

Reviewed, looks good to me. I have two small nitpicks.

@mhalbritter mhalbritter changed the title Use Parser-bound DeserializationContext for parsing type hints in TypeResolver` Use Parser-bound DeserializationContext for parsing type hints in TypeResolver Jul 30, 2026
mhalbritter pushed a commit that referenced this pull request Jul 30, 2026
…TypeResolver`.

We now use the deserialization context bound to the JSON parser instead of using the unbound and generic Mapper DeserializationContext that is actually only visible for testing.

Closes #3396
Original Pull Request: #3404
mhalbritter pushed a commit that referenced this pull request Jul 30, 2026
…TypeResolver`.

We now use the deserialization context bound to the JSON parser instead of using the unbound and generic Mapper DeserializationContext that is actually only visible for testing.

Closes #3396
Original Pull Request: #3404
mhalbritter pushed a commit that referenced this pull request Jul 30, 2026
…TypeResolver`.

We now use the deserialization context bound to the JSON parser instead of using the unbound and generic Mapper DeserializationContext that is actually only visible for testing.

Closes #3396
Original Pull Request: #3404
@mhalbritter mhalbritter added this to the 4.0.7 (2025.1.7) milestone Jul 30, 2026
@mhalbritter

Copy link
Copy Markdown
Contributor

Merged and backported. Thanks @mp911de !

@mp911de
mp911de deleted the issue/3396 branch July 31, 2026 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug A general bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GenericJacksonJsonRedisSerializer throws NPE deserializing duplicate properties

3 participants