Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Throw exception for failure to set property as index in SpEL
Prior to this commit, the Indexer in the Spring Expression Language (SpEL) silently ignored a failure to set a property via the indexed property syntax (['<property name>'] = <new value>) – for example, if property write access was disabled in the EvaluationContext. This commit addresses this issue by properly throwing a SpelEvaluationException in PropertyIndexingValueRef.setValue(Object) if the property could not be set. See gh-33310 Closes gh-33311 (cherry picked from commit c57c227)
- Loading branch information