Skip to content

@JsonIdentityReference(alwaysAsId = true) Custom resolver is reset to SimpleObjectIdResolver #524

@pkokorev

Description

@pkokorev

When using @JsonIdentityInfo with a custom resolver along with @JsonIdentityReference(alwaysAsId = true), the _resolver member variable of the ObjectIdInfo class is reset to SimpleObjectIdResolver.class by calling a wrong (?) constructor inside the withAlwaysAsId(...) method. Should that be another constructor that accepts the Class<? extends ObjectIdResolver> as the last parameter to be called instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions