Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate local variable support in SpEL's internal ExpressionState #32004

Closed
sbrannen opened this issue Jan 10, 2024 · 0 comments
Closed

Deprecate local variable support in SpEL's internal ExpressionState #32004

sbrannen opened this issue Jan 10, 2024 · 0 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Milestone

Comments

@sbrannen
Copy link
Member

As discussed in #23202 (comment), the Spring Expression Language does not actually support local variables in expressions.

Consequently, we will deprecate all public APIs related to local variables in ExpressionState (enterScope() variants that accepts local variable data, setLocalVariable(), and lookupLocalVariable()) and stop invoking state.enterScope("index", index) in Projection and Selection.

@sbrannen sbrannen added in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement labels Jan 10, 2024
@sbrannen sbrannen added this to the 6.2.0-M1 milestone Jan 10, 2024
@sbrannen sbrannen self-assigned this Jan 10, 2024
@bclozel bclozel changed the title Deprecate local variable support in SpEL's internal ExpressionState Deprecate local variable support in SpEL's internal ExpressionState Feb 14, 2024
@sbrannen sbrannen changed the title Deprecate local variable support in SpEL's internal ExpressionState Deprecate local variable support in SpEL's internal ExpressionState Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant