Skip to content

fix(core): avoid Jackson 2.19+ JsonNode.properties() in JsonValue.asObject() for Spring Boot compatibility #18

Backlog

Description

@wssab314

Summary

JsonValue.asObject() (src/main/java/com/qoder/cloudagents/core/JsonValue.java:132) calls node.properties(), which was introduced in Jackson 2.19.0.

Because com.fasterxml.jackson.core:jackson-databind is published as an unshaded transitive dependency in pom.xml, consumers using Spring Boot 2.x or Spring Boot 3.0–3.4 (whose dependency management pins Jackson to 2.13–2.18) fail at runtime with:

java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.JsonNode.properties()Ljava/util/Set;

Proposed Fix

Replace node.properties() with the Jackson 2.x-compatible node.fields() iterator (annotated with @SuppressWarnings("deprecation")), preserving exact LinkedHashMap insertion order and unmodifiable map behavior across Jackson 2.13–2.21+.

I have a verified fix with unit tests ready and will open a PR referencing this issue shortly.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions