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

Reject competing read and write accessors for PropertyAccessor and IndexAccessor in SpEL #32737

Open
sbrannen opened this issue Apr 30, 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

Overview

While working on #26478 and related issues, it became apparent that a developer can inadvertently register one PropertyAccessor for reading a given property and a second competing accessor for writing the same property, which can lead to improper behavior when a cached accessor is expected to be able to support both read and write access for a given property.

The same can happen with multiple competing IndexAccessor implementations.

We have therefore decided to reject competing read and write accessors for the same property or the same index for both PropertyAccessor and IndexAccessor, respectively, starting with Spring Framework 6.2.

Related Issues

@sbrannen sbrannen added in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement labels Apr 30, 2024
@sbrannen sbrannen added this to the 6.2.0-M2 milestone Apr 30, 2024
@sbrannen sbrannen self-assigned this Apr 30, 2024
@sbrannen sbrannen modified the milestones: 6.2.0-M2, 6.2.x May 4, 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