-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SORT_PROPERTIES_ALPHABETICALLY doesn't work for partial constructors #2604
Comments
One quick note: sort order is a combination of multiple things, with different precedence. Highest precedence is for explicit order information ( I'll tag this as 3.x although if I have time I'd like to verify current processing to make sure I understand how it works first, before considering possible changes. |
Note: there are now 3 relevant
combining which will allow True alphabetic sorting -- by disabling Will mark as solved. |
Given the following class:
The following
Spock
test fails:fails, since it's serialized to the keys
b
,a1
,a2
(uncommenting the first param, i.e.@JsonCreator public Child2(Object a1, Object b /*, Object a2*/) {}
would returna1
,b
,a2
).While this may be a relatively stable solution (not even sure about that, since apparently constructor changes can affect the order), it's definitely not alphabetic.
The text was updated successfully, but these errors were encountered: