You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although Creator-provided properties are sorted before other properties, esp. if MapperFeature.SORT_CREATOR_PROPERTIES_FIRST is enabled.
But if MapperFeature.SORT_PROPERTIES_ALPHABETICALLY is enabled, properties of single Creator are still sorted alphabetically. This is probably not what is wanted, at least for Records.
So, we have 2 possibilities:
If SORT_CREATOR_PROPERTIES_FIRST is enabled, retain order of all Properties-based Creators (unless there is explicit @JsonPropertyOrder)
Only retain full ordering for Record Creators
Further we could add a new MapperFeature to control above cases.
Something like MapperFeature.RETAIN_ORDER_OF_CREATOR_PROPERTIES?
NOTE: this becomes more obvious with 3.0 when SORT_PROPERTIES_ALPHABETICALLY will be enabled by default.