Skip to content

Remove Object... varargs overloads in FilterExpressionBuilderTests #3489

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

therepanic
Copy link

@therepanic therepanic commented Jun 9, 2025

When we swipe List where in the generic we don't have Object, we hit Object... which is wrong, and we make a double list. That is, one element is added in this case, which is fundamentally wrong.

There are two ways to fix this. Either remove overloading with Object... (as I did), or make FilterExpressionBuilderTests generic and make List<T> values in the argument of acceptance. However, both changes are breaking.

If the second option is better for you to fix the problem I am ready to discuss it as I like both options I have given.

The test I gave will not work without changes in the class itself.

Fix: #3482

spring-projects#3482)

Signed-off-by: Andrey Litvitski <andrey1010102008@gmail.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generic problems with FilterExpressionBuilder
1 participant