Ensure varargs component type for MethodHandle
is not null
in SpEL's ReflectionHelper
#33193
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
The
TypeDescriptor
for the varargs component type can currently benull
in SpEL'sReflectionHelper.convertAllMethodHandleArguments(...)
method; however, that should not be possible.Whereas, in
compareArgumentsVarargs(...)
andconvertArguments(...)
the varargs component type can never benull
.My assumption is that we are using an incorrect combination of
Class
,ResolvableType
, andTypeDescriptor
inconvertAllMethodHandleArguments(...)
.I discovered this while working on related SpEL issues and added the following TODO which this issue aims to address.
spring-framework/spring-expression/src/main/java/org/springframework/expression/spel/support/ReflectionHelper.java
Lines 386 to 387 in 4de2aad
The text was updated successfully, but these errors were encountered: