Skip to content

Provide a MethodResolver implementation to the SpEL EvaluationContext that filters candidate Methods [INT-936] #4951

Closed
@spring-operator

Description

@spring-operator

Mark Fisher opened INT-936 and commented

We need to avoid ambiguities that may arise when more than one method has the same name.

For example, in the following code to be used for transformation, only the annotated method should be available for evaluation:

@Transformer
public int process(int i);

public String process(String s);

Likewise, if a processor has a 'requiresReply' value of TRUE, then void-returning methods should be avoided (in this code, we now assume that there are no annotated methods, so any public method would be a potential candidate):

// available
public int process(int i);

// not available
public void process(String s);

Affects: 2.0 M1

This issue is a sub-task of #4836

Issue Links:

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions