Skip to content

Conversation

l-trotta
Copy link
Contributor

@l-trotta l-trotta commented Oct 1, 2025

Content of this PR:

  • Deprecated jackson 2 support classes
  • Added jackson 3 equivalent classes
  • Copied and translated unit tests (there's still one failing)

Notable changes from Jackson 2:

  • ObjectMapper and JsonFactory are fully immutable in 3.x -> using rebuild() to allow customization of user configured mapper
  • Using the specialized JsonMapper instead of ObjectMapper
  • DeserializationFeature.FAIL_ON_TRAILING_TOKENS is now enabled by default, need to disable it in the config
  • JacksonException now is a runtime exception, removed handling

@l-trotta l-trotta marked this pull request as draft October 1, 2025 16:41
@l-trotta l-trotta requested a review from swallez October 1, 2025 16:41
@l-trotta l-trotta mentioned this pull request Oct 1, 2025
// https://github.com/FasterXML/jackson
implementation("tools.jackson.core", "jackson-databind", "3.0.0-rc10")
implementation("tools.jackson.core", "jackson-core", "3.0.0-rc10")
implementation("com.fasterxml.jackson.core","jackson-annotations","3.0-rc5")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

implementation("com.fasterxml.jackson.core","jackson-annotations","3.0-rc5")
dedicated jackson-annotations for version 3 is dropped.

from jackson discussion FasterXML/jackson-future-ideas#90

3.x will use 2.x jackson-annotations versions: 3.0.x will use 2.20, and so on (no separate 3.x versions released for jackson-annotations)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good to know, thank you! will fix

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.

2 participants