spring-framework/spring-expression
Sam Brannen c1236a3340 Support varargs-only MethodHandle as SpEL function
Prior to this commit, if a MethodHandle was registered as a custom
function in the Spring Expression Language (SpEL) for a static method
that accepted only a variable argument list (for example,
`static String func(String... args)`), attempting to invoke the
registered function within a SpEL expression resulted in a
ClassCastException because the varargs array was unnecessarily wrapped
in an Object[].

This commit modifies the logic in FunctionReference's internal
executeFunctionViaMethodHandle() method to address that.

Closes gh-34109
2024-12-18 17:59:14 +01:00
..
src Support varargs-only MethodHandle as SpEL function 2024-12-18 17:59:14 +01:00
spring-expression.gradle Initial review and polish of IndexAccessor support in SpEL 2024-04-10 15:54:34 +02:00