-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Record property serialization order not preserved #4617
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
Comments
Could you try testing with 2.18.0-SNAPSHOT? This version contains more changes in the code handling property order. |
I don't know where to find this version. Is it released somewhere? You can test it yourself pretty easily given the provided test. It only depends on JUnit5 and Jackson. |
Snapshots are a commonly used way of testing pre-release changes. Jackson uses Sonatype for publishing jars. Maybe reading reading the docs for your preferred build tool could e an option. For Maven, this has some answers: https://stackoverflow.com/questions/16286055/how-to-get-snapshot-from-sonatype |
The test passes with the current Do you have any rough estimate regarding when we can expect release of 2.18.0? |
@GeorgiPetkov Most likely end of August -- need at least one Release Candidate and we are not yet ready for that. Plus I'll be on vacation last week of July, first of August. |
Marked as resolved for 2.18.0. |
Note: 2.18.0-rc1 is out, release to be done this week (end of September). |
Search before asking
Describe the bug
Since 2.16.0 the order of
record
's properties is not preserved when@JsonProperty
is present. This is not the case for version 2.15.X.The impact:
Version Information
1.16.0+, works on 1.15.X
Reproduction
Expected behavior
The properties in the JSON should be in the same order as defined in the
record
just like it behaves without the@JsonProperty
annotation.Additional context
No response
The text was updated successfully, but these errors were encountered: