Upgrade jackson from 2.22.0 to 3.2.0#758
Open
sabieber wants to merge 1 commit into
Open
Conversation
Renames all imports from com.fasterxml.jackson to the new tools.jackson packages; annotations remain on the 2.x line. Applies the accompanying API renames: JsonProcessingException becomes the unchecked JacksonException and the text accessors are replaced by their string counterparts (asText() -> asString()). No structural or behavioral changes are required as the shared object mapper in sirius-kernel retains its Jackson 2 compatible configuration. Assisted-by: Claude Fable 5 Fixes: SIRI-1149
Contributor
There was a problem hiding this comment.
Pull request overview
Upgrades this module’s Jackson usage to Jackson 3-compatible packages/APIs (tools.jackson.*) and updates affected JSON node accessors in ES-related code and tests.
Changes:
- Migrated Jackson imports from
com.fasterxml.jackson.*totools.jackson.*across ES, mixing properties, and utility code. - Updated
JsonNodestring accessor usages in tests and core ES query/entity code (asText()→asString()). - Simplified Kotlin JSON construction in nightly suggest test to align with updated Jackson APIs.
Reviewed changes
Copilot reviewed 50 out of 50 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/test/kotlin/sirius/db/es/SuggestNightlyTest.kt | Removes Jackson ObjectNode import and updates JSON builder call for Jackson 3 compatibility. |
| src/test/kotlin/sirius/db/es/LowLevelClientTest.kt | Updates JsonNode string accessor to asString() in assertions. |
| src/test/kotlin/sirius/db/es/ElasticQueryTest.kt | Updates aggregation bucket key extraction to asString(). |
| src/main/java/sirius/db/util/Tensors.java | Switches ArrayNode import to tools.jackson.*. |
| src/main/java/sirius/db/mixing/properties/StringProperty.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/mixing/properties/StringMapProperty.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/mixing/properties/StringLocalDateTimeMapProperty.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/mixing/properties/StringListProperty.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/mixing/properties/StringIntMapProperty.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/mixing/properties/StringBooleanMapProperty.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/mixing/properties/SQLEntityRefProperty.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/mixing/properties/NestedListProperty.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/mixing/properties/MongoRefProperty.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/mixing/properties/LongProperty.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/mixing/properties/LocalDateTimeProperty.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/mixing/properties/LocalDateProperty.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/mixing/properties/IntegerProperty.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/mixing/properties/EnumProperty.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/mixing/properties/ElasticRefProperty.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/mixing/properties/BooleanProperty.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/mixing/properties/BaseEntityRefListProperty.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/mixing/properties/AmountProperty.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/es/types/DenseVectorProperty.java | Switches ArrayNode/ObjectNode imports to tools.jackson.*. |
| src/main/java/sirius/db/es/suggest/TextPartSuggestion.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/es/suggest/TermSuggestion.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/es/suggest/SuggestionResult.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/es/suggest/SuggestionQuery.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/es/suggest/SuggesterBuilder.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/es/SortBuilder.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/es/SettingsCustomizer.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/es/RequestBuilder.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/es/NearestNeighborsSearch.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/es/LowLevelClient.java | Switches ArrayNode/ObjectNode imports to tools.jackson.*. |
| src/main/java/sirius/db/es/IndexMappings.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/es/FunctionScoreBuilder.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/es/ESPropertyInfo.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/es/ElasticQuery.java | Switches Jackson core/databind imports to tools.jackson.* and updates asString() usage. |
| src/main/java/sirius/db/es/ElasticMetricsProvider.java | Switches Jackson core/databind imports to tools.jackson.*. |
| src/main/java/sirius/db/es/ElasticEntity.java | Switches Jackson databind imports to tools.jackson.* and updates asString() usage. |
| src/main/java/sirius/db/es/Elastic.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/es/constraints/NestedQuery.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/es/constraints/ElasticFilterFactory.java | Switches ArrayNode/ObjectNode imports to tools.jackson.*. |
| src/main/java/sirius/db/es/constraints/ElasticCSVFilter.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/es/constraints/ElasticConstraint.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/es/constraints/BoolQueryBuilder.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/es/BulkResult.java | Switches ArrayNode/ObjectNode imports to tools.jackson.*. |
| src/main/java/sirius/db/es/BulkContext.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/es/Bucket.java | Switches ObjectNode import to tools.jackson.*. |
| src/main/java/sirius/db/es/AggregationResult.java | Switches Jackson databind imports to tools.jackson.*. |
| src/main/java/sirius/db/es/AggregationBuilder.java | Switches Jackson databind imports to tools.jackson.*. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
idlira
approved these changes
Jul 13, 2026
mkeckmkeck
approved these changes
Jul 14, 2026
jakobvogel
approved these changes
Jul 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BREAKING CHANGES
Upgrades Jackson from 2.22.0 to 3.2.0 across the sirius stack. Jackson 3 uses new Maven coordinates and Java packages — see the official Jackson 3 migration guide and release notes for the complete list of renames and behavioral changes.
What applications using the sirius framework have to change:
com.fasterxml.jackson.*→tools.jackson.*(annotations stay oncom.fasterxml.jackson.annotation); dropjackson-datatype-jsr310andJavaTimeModuleregistrations (built-in now).JsonProcessingException→JacksonException, deadcatch (IOException)blocks), method renames (asText()→asString()etc.,writeFieldName()→writeName()etc.), builder-based mapper/generator configuration — see the migration guide for details.Additional Notes
Checklist