Skip to content

Reject competing SpEL accessors#36823

Open
Will-thom wants to merge 1 commit into
spring-projects:mainfrom
Will-thom:fix/spel-competing-accessors
Open

Reject competing SpEL accessors#36823
Will-thom wants to merge 1 commit into
spring-projects:mainfrom
Will-thom:fix/spel-competing-accessors

Conversation

@Will-thom
Copy link
Copy Markdown

This rejects competing read and write accessors for the same property or index when SpEL needs a read/write reference, such as compound assignments. It preserves read-only and write-only operations when there is no competing accessor.

Closes gh-32737

Tests:

  • ./gradlew.bat --no-daemon :spring-expression:check

Closes spring-projectsgh-32737

Signed-off-by: Will-thom <116388885+Will-thom@users.noreply.github.com>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label May 21, 2026
@sbrannen sbrannen added the in: core Issues in core modules (aop, beans, core, context, expression) label May 21, 2026
@sbrannen sbrannen self-assigned this May 21, 2026
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) status: waiting-for-triage An issue we've not yet triaged or decided on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants