SecurityEvaluationContextExtension Signature

SecurityEvaluationContextExtension.getRootObject() should have a signature
with a return type of SecurityExpressionRoot. See
EvaluationContextExtension javadoc
eed7658ce5/src/main/java/org/springframework/data/spel/spi/EvaluationContextExtension.java (L61-L64)

This enhancement will allow for Spring Data to make certain types of
optimizations.

Fixes gh-7891
This commit is contained in:
Rob Winch 2020-02-04 07:32:16 -06:00
parent 5678490c1f
commit ca5cc13948
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ public class SecurityEvaluationContextExtension
}
@Override
public Object getRootObject() {
public SecurityExpressionRoot getRootObject() {
Authentication authentication = getAuthentication();
return new SecurityExpressionRoot(authentication) {
};