You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then assume to refactor rename the field customerId of the Customer class to e.g. just id. Since the cache key String literal is not considered by the refactoring action (which is tackled here #521) it is hard to notice that the @CacheEvict does not work anymore as expected.
So, what's needed here is a deeper validation at compile time to check if the expression is sound. In this case, if the referenced field of the parameter's type exists.
The text was updated successfully, but these errors were encountered:
martinlippert
changed the title
Validation for Annotations with Spring Expression Language
Advanced Validation for Annotations with Spring Expression Language
Feb 24, 2023
Follow up of #475
Considering this situation:
Then assume to refactor rename the field
customerId
of theCustomer
class to e.g. justid
. Since the cache key String literal is not considered by the refactoring action (which is tackled here #521) it is hard to notice that the@CacheEvict
does not work anymore as expected.So, what's needed here is a deeper validation at compile time to check if the expression is sound. In this case, if the referenced field of the parameter's type exists.
The text was updated successfully, but these errors were encountered: