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

@CacheEvict condition uses wrapper comparison instead of actual objects #32960

Closed
yangwenliang123 opened this issue Jun 5, 2024 · 1 comment
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Milestone

Comments

@yangwenliang123
Copy link

yangwenliang123 commented Jun 5, 2024

@CacheEvict(key = "#type", condition = "#result > 0")
@Override
public Mono<Long> delete(String type) {
    return r2dbcEntityTemplate.delete(Query.query(Criteria.where("type").is(type)), SysDict.class);
}
org.springframework.expression.spel.SpelEvaluationException: EL1013E: Cannot compare instances of class reactor.core.publisher.MonoOnAssembly and class java.lang.Integer
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Jun 5, 2024
@snicoll snicoll added the in: core Issues in core modules (aop, beans, core, context, expression) label Jun 5, 2024
@jhoeller jhoeller added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Jun 6, 2024
@jhoeller jhoeller added this to the 6.1.9 milestone Jun 6, 2024
@jhoeller jhoeller self-assigned this Jun 6, 2024
@jhoeller
Copy link
Contributor

jhoeller commented Jun 7, 2024

This should be fixed in the latest 6.1.9 snapshot now. Feel free to give it an early try!

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: bug A general bug
Projects
None yet
Development

No branches or pull requests

4 participants