Skip to content

Jackson doesn't see companion object @JsonCreators unles they also have @JvmStatic #355

@dinomite

Description

@dinomite

Describe the bug
Jackson doesn't see builder methods in a companion object unless they are annotate with @JvmStatic.

To Reproduce
PR with repro test #354

Expected behavior
Jackson should find @JsonCreator-annotated methods on companion objects.

Versions
Kotlin:
Jackson-module-kotlin: 2.11.2
Jackson-databind: 2.11.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions