Skip to content

SpEL context is wrong in method parameter resolution [SPR-6525] #11191

@spring-projects-issues

Description

@spring-projects-issues

Dave Syer opened SPR-6525 and commented

SpEL context is wrong in method parameter resolution. Instead of using the current context for the stack (which refers to the method target), parameters should have a current context equal to the context root. This test would fail in EvaluationTests():

@Test
public void testNestedMethod() {
     evaluate("placeOfBirth.doubleIt(inventions.length)", 18, Integer.class);
}

Affects: 3.0 RC3

Attachments:

Issue Links:

Referenced from: commits 33a7bbb

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions