Browse Source
Prior to this commit, SpEL incorrectly wrapped a primitive array in an Object[] array when invoking Object[] varargs methods and constructors. This commit addresses this by updating the convertArguments(...) method in ReflectionHelper as follows when the user supplies the varargs already packaged in a primitive array. - When deciding whether to convert a single element passed as varargs, we now check if the argument is an array that is assignable to the varargs array type. - When converting an array supplied as the varargs, we convert that array to the varargs array type. Closes gh-33317pull/33365/head
3 changed files with 9 additions and 9 deletions
Loading…
Reference in new issue