Use withAssignmentDisabled() for IntSimpEvalCtxFactoryBean

(cherry picked from commit feef055a53)
This commit is contained in:
Artem Bilan
2024-08-20 11:10:52 -04:00
committed by Spring Builds
parent 4889100c63
commit d90f20cb26

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2018-2022 the original author or authors.
* Copyright 2018-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -82,6 +82,7 @@ public class IntegrationSimpleEvaluationContextFactoryBean extends AbstractEvalu
SimpleEvaluationContext.forPropertyAccessors(accessorArray)
.withTypeConverter(getTypeConverter())
.withInstanceMethods()
.withAssignmentDisabled()
.build();
for (Entry<String, Method> functionEntry : getFunctions().entrySet()) {
evaluationContext.setVariable(functionEntry.getKey(), functionEntry.getValue());