Non-creator @JsonAnySetter properties have their arguments returned in a LinkedHashMap, preserving their order. This is useful e.g. when outputing back to JSON.
However, when switching to creator properties (e.g. when converting a class to a record, now that @JsonAnySetter creator properties are supported), this behavior is lost.
Describe the solution you'd like
Make @JsonAnySetter creator properties behave similarly to non-creator ones, using a LinkedHashMap.
Non-creator
@JsonAnySetterproperties have their arguments returned in aLinkedHashMap, preserving their order. This is useful e.g. when outputing back to JSON.However, when switching to creator properties (e.g. when converting a class to a record, now that
@JsonAnySettercreator properties are supported), this behavior is lost.Describe the solution you'd like
Make
@JsonAnySettercreator properties behave similarly to non-creator ones, using aLinkedHashMap.