Christopher Smith opened SPR-14284 and commented
I have an overloaded method where one overload's single parameter exactly matches the argument supplied to the SpEL evaluator. SpEL nevertheless attempts to find a suitable conversion for each of the overloads, which is triggering a bug in Data Commons.
In the case where the supplied argument exactly matches the parameter type (or potentially is an instanceof
), SpEL could avoid the conversion attempt entirely.
Affects: 4.3 RC2
Comment From: spring-projects-issues
Juergen Hoeller commented
SpEL's current method resolution algorithm is quite heavily tied to the argument matching step, with conversion checks implied further below. It doesn't seem feasible to revise in the 4.3 timeframe but we can certainly reconsider for 5.0.