Skip to content

Spring EL method resolver fails on vararg calls [SPR-7633] #12289

@spring-projects-issues

Description

@spring-projects-issues

Bertalan Fodor opened SPR-7633 and commented

If you have a class like

Factory {
  getBean(String name) {}
  getBean(String name, Object... args) {}
}

Then have this in expression language:

#{factory.getBean("MyBeanName")}

then it is undeterministic which method will be called, as the ReflectiveMethodResolver class will just iterate on the methods and call the first matching.

While in Java it is well defined, which method will be called.


Affects: 3.0.4

Referenced from: commits 7553b76

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions