mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
Prior to this commit, the SpEL Indexer's PropertyAccessorValueRef could reuse a cached PropertyAccessor for reads and writes even after that accessor had been removed from the current EvaluationContext, leading to stale property access if the EvaluationContext changes between evaluations of the same expression. This commit aligns PropertyAccessorValueRef with the analogous logic in PropertyOrFieldReference and Indexer's IndexAccessorValueRef by verifying that the cached PropertyAccessor is still registered in the current EvaluationContext before reusing it in getValue() and setValue(). Closes gh-36986