spring-framework/framework-docs
Simon Baslé 906c54faff Add SpEL support for registered MethodHandles
This commit adds support for MethodHandles in SpEL, using the same
syntax as user-defined functions (which also covers reflective Methods).

The most benefit is expected with handles that capture a static method
with no arguments, or with fully bound handles (where all the arguments
have been bound, including a target instance as first bound argument
if necessary). Partially bound MethodHandle should also be supported.

A best effort approach is taken to detect varargs as there is no API
support to determine if an argument is a vararg or an explicit array,
unlike with Method. Argument conversions are also applied. Finally,
array repacking is not always necessary with varargs so it is only
performed when the vararg is the sole argument to the invoked method.

See gh-27099
Closes gh-30045
2023-05-05 16:18:25 +02:00
..
modules/ROOT Add SpEL support for registered MethodHandles 2023-05-05 16:18:25 +02:00
src Migrate Structure 2023-05-04 15:35:05 +01:00
antora.yml Fix Title in antora.yml 2023-05-04 15:35:05 +01:00
framework-docs.gradle Update target repository for Antora 2023-05-04 15:37:21 +01:00