-
-
Notifications
You must be signed in to change notification settings - Fork 800
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
Compare _snapshotInfo
in Version
#1050
Comments
An easy way to get the desired behavior here would probably be to sort the stuff after the hyphen alphabetically, and whichever is earlier in the list would be considered "older". |
To be honest, comparability is not used by anything in Jackson itself so it's not a big deal in that sense. But if anyone wants to fix this, feel free to send a PR; ideally because it solves an actual problem (code outside of Jackson relying on ordering of snaphot info). |
_snapshotInfo
in Version
@artoonie One question: is the comparison in case of "no snapshot info" correct? It seems to me that it would "no snapshot" before snapshot -- which is not correct, I think. That is: as things are, this would be considered ordering:
which is not right I think. I'll see if this is the case or not. EDIT: I thing I was wrong; behavior is correct as-is. Same as in But I would definitely appreciate others looking into this. |
According to semver.org, |
@artoonie Ok yes that makes sense. I was confused by implementation ( |
Thank you both! Any ETA on when 2.16 will be released? |
Not for quite a while; no ETA. Maybe in August/September? |
The test has started to fail since Jackson 2.16.0 because of the following changes: - FasterXML/jackson-core#1053 - FasterXML/jackson-core#1142 These were "fixing" the following issues: - FasterXML/jackson-core#1050 - FasterXML/jackson-core#1141
According to semver, 1.0.0-alpha < 1.0.0-beta.
However,
Version.compareTo
does not account for_snapshotInfo
in its comparison: https://github.com/FasterXML/jackson-core/blob/2.16/src/main/java/com/fasterxml/jackson/core/Version.java#L135Does it make sense to compare
_snapshotInfo
as well?The text was updated successfully, but these errors were encountered: