-
-
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
Default ordering for record with @JsonProperties fields mixed with fields without annotations #4712
Comments
Are you sure that's the correct version? From my local testing:
Seems like it has never been according to "expected" nor "actual". UPDATE |
Great! Thank you for testing @yihtserns 👍🏼 2.18 version is in release candidate state now. Please wait and use 2.18 release @mumukiller 👌🏼👌🏼 |
Sorry i found this issue due to spring boot update, there were some issues with gradle cache, the real current version is 2.17.2 Do i need to change the description? PS Did it) |
If this is fixed in 2.18.0, let's close? |
@cowtowncoder do you remember if you added a test with the scenario above, when you did #4515? |
@yihtserns I think I did, and that there'd be actually specific issue for this very thing... let me see if I find in release notes. |
Ok: I think #4617 ? |
Closing as duplicate of #4617. |
Search before asking
Describe the bug
Expected order of fields in result of
writeValueAsString
method should have the same order as order fields which are declared in record, but in fact it's not true.Version Information
2.17.2
Reproduction
Below there is a simple test
Expected :{"a":"1","b":"1","c":"3","d":"4"}
Actual :{"b":1,"d":"4","a":"1","c":"3"}
So i expect that fields in the result will be int he same order as declared in record
Probably that my understanding of how it should work is wrong.
Expected behavior
{"a":"1","b":"1","c":"3","d":"4"}
Additional context
No response
The text was updated successfully, but these errors were encountered: