-
Notifications
You must be signed in to change notification settings - Fork 38.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use ConversionService to convert POJO to array for SpEL varargs invoc…
…ations Prior to this commit, if an appropriate Converter was registered with the ConversionService that converts from a POJO to an array and that ConversionService was registered with the Spring Expression Language (SpEL) TypeConverter, an attempt to invoke a varargs method in a SpEL expression with such a POJO would fail because the ConversionService was not used to convert the POJO to an array suitable for the varargs method invocation. This commit revises the implementations of convertArguments(...) and convertAllMethodHandleArguments(...) in ReflectionHelper to support such use cases. Closes gh-34371
- Loading branch information
Showing
3 changed files
with
92 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters