Repository navigation
Conversation
…asObject() Replace Jackson 2.19+ JsonNode.properties() in JsonValue.asObject() with JsonNode.fields() so applications pinned to Jackson 2.13-2.18 (such as Spring Boot 2.x and 3.0-3.4) do not fail with NoSuchMethodError at runtime. Fixes QoderAI#18
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.
Change
Replace Jackson 2.19+
JsonNode.properties()inJsonValue.asObject()(src/main/java/com/qoder/cloudagents/core/JsonValue.java) with the Jackson 2.x-compatibleJsonNode.fields()iterator (annotated with@SuppressWarnings("deprecation")).Because
jackson-databindis declared as an unshaded transitive dependency, consumers whose dependency management pins Jackson 2.13–2.18 (such as Spring Boot 2.x and 3.0–3.4) previously crashed at runtime withNoSuchMethodError: com.fasterxml.jackson.databind.JsonNode.properties(). This change preserves identicalLinkedHashMapinsertion ordering and unmodifiable map semantics across Jackson 2.13–2.21+.Java-specific change (no Go / Python / TypeScript impact). Non-breaking.
Fixes #18
Validation
./mvnw -B -ntp clean verifyon Zulu OpenJDK 17.0.15: 1,277 tests, 0 failures, 0 errors; jar/sources/javadoc built cleanly).examples/pom.xml) — will be verified by CI 5-JDK matrix (clean install+examples/pom.xml clean verify).python3 .github/scripts/check_package.py:class_count: 1252,class_major_version: 52).CHANGELOG.mdupdated under## [Unreleased]).make qualitypasses on JDK 17+ (Java format verified: 697 files,Repository checks passed, 38 script tests OK).Commands run locally on macOS arm64 / Zulu OpenJDK 17.0.15:
./mvnw -B -ntp clean verify-> Tests run: 1277, Failures: 0, Errors: 0, Skipped: 0; BUILD SUCCESSmake quality-> PASS (697 files formatted, 127 local links OK, 38 tests OK)python3 .github/scripts/check_package.py-> PASS (class_major_version: 52)