Skip to content

double evaluation of method arguments in SpEL [SPR-11445] #16071

@spring-projects-issues

Description

@spring-projects-issues

Björn Voß opened SPR-11445 and commented

Since version 3.2.5 in expressions like

"dummyAction.isSero(dummyBean.getCalls())"

the argument part "dummyBean.getCalls()" is evaluated twice

see attached a little project for testing.
if you change the propertie 'spring.version' to 3.2.4.RELEASE the test is green. On all later versions the test fails.


Affects: 3.2.5, 3.2.6, 3.2.7, 3.2.8, 4.0.1, 4.0.2

Attachments:

Referenced from: commits 519799e, b1bcc5d

Backported to: 3.2.9

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: regressionA bug that is also a regression

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions