Skip to content

SpEL Indexer silently ignores failure to set property as index #33310

@sbrannen

Description

@sbrannen

The PropertyIndexingValueRef.setValue(Object) method in SpEL's Indexer silently ignores a failure to set a property via the indexing syntax.

For example, if property writes are disabled in the EvaluationContext, the SpEL expression #person['name'] = 'Jane' evaluates successfully without throwing an exception, but the name property is not actually set.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions