Skip to content

SimpleEvaluationContext should disable array allocation #28808

Closed
@quaff

Description

@quaff

The Javadoc for SimpleEvaluationContext states that it is:

tailored to support only a subset of the SpEL language syntax, e.g. excluding references to Java types, constructors, and bean references.

Since array allocation is a special kind of constructor we should also disable array allocation in order to adhere to the contract of SimpleEvaluationContext.

This may be a breaking change for some users. Consequently, this change should likely only be made in Spring Framework 6.0.

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions