Skip to content
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

Fix Comparators.nullsLow and Comporators.nullsHigh behavior #31808

Closed
wants to merge 1 commit into from

Conversation

mathieu-amblard
Copy link
Contributor

nullsLow should s…ort null values lower than non-null values, nullsHigh should sort null values higher than non-null values
The reverse behavior has been introduced in Spring Framework 6.1.X, it was correct before.
See https://github.com/spring-projects/spring-framework/blob/main/spring-core/src/test/java/org/springframework/util/comparator/NullSafeComparatorTests.java which tests the same comparators used before.

…ort null values lower than non-null values, nullsHigh should sort null values higher than non-null values
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Dec 11, 2023
@sbrannen sbrannen self-assigned this Dec 11, 2023
@sbrannen sbrannen added type: regression A bug that is also a regression in: core Issues in core modules (aop, beans, core, context, expression) and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Dec 11, 2023
@sbrannen sbrannen added this to the 6.1.2 milestone Dec 11, 2023
sbrannen added a commit to sbrannen/spring-framework that referenced this pull request Dec 11, 2023
@sbrannen sbrannen closed this in a013840 Dec 11, 2023
@sbrannen
Copy link
Member

Congratulations on submitting your first PR for the Spring Framework! 👍

This has been merged into main in a013840 and revised in 7432a96.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: regression A bug that is also a regression
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants