Merge branch '6.1.x'

This commit is contained in:
Stéphane Nicoll
2024-03-09 16:03:04 +01:00
21 changed files with 54 additions and 108 deletions

View File

@@ -163,8 +163,8 @@ public class FunctionReference extends SpelNodeImpl {
/**
* Execute a function represented as {@link MethodHandle}.
* <p>Method types that take no arguments (fully bound handles or static methods
* with no parameters) can use {@link MethodHandle#invoke()} which is the most
* efficient. Otherwise, {@link MethodHandle#invokeWithArguments()} is used.
* with no parameters) can use {@link MethodHandle#invoke(Object...)} which is the most
* efficient. Otherwise, {@link MethodHandle#invokeWithArguments(Object...)} is used.
* @param state the expression evaluation state
* @param methodHandle the method handle to invoke
* @return the return value of the invoked Java method

View File

@@ -37,11 +37,11 @@ import org.springframework.expression.spel.support.StandardEvaluationContext;
import static org.assertj.core.api.Assertions.assertThat;
///CLOVER:OFF
/**
* Spring Security scenarios from https://docs.spring.io/spring-security/reference/servlet/authorization/expression-based.html
* SpEL expression tests for Spring Security scenarios.
*
* @author Andy Clement
* @see <a href="https://docs.spring.io/spring-security/reference/servlet/authorization/authorize-http-requests.html#authorization-expressions">Expressing Authorization with SpEL</a>
*/
class ScenariosForSpringSecurityExpressionTests extends AbstractExpressionTests {