Skip to content

Jackson 3 JsonNode#required(java.lang.String) throws JsonNodeException different from JavaDoc #5407

@JooHyukKim

Description

@JooHyukKim

Discussed in #5406

Originally posted by jochenberger November 19, 2025
I'm currently migrating a project from Jackson 2 to 3.
I noticed that tools.jackson.databind.JsonNode#required(java.lang.String) now throws a JsonNodeException if the property is missing while the JavaDoc claims that an IllegalArgumentException is thrown. So one of them is probably wrong. 😉

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