From d90f20cb26b618718460350ec4e3f3960d7239c1 Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Tue, 20 Aug 2024 11:10:52 -0400 Subject: [PATCH] Use `withAssignmentDisabled()` for IntSimpEvalCtxFactoryBean (cherry picked from commit feef055a53ee090a23b8381209312d38e4fe3cb2) --- .../config/IntegrationSimpleEvaluationContextFactoryBean.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-integration-core/src/main/java/org/springframework/integration/config/IntegrationSimpleEvaluationContextFactoryBean.java b/spring-integration-core/src/main/java/org/springframework/integration/config/IntegrationSimpleEvaluationContextFactoryBean.java index 36fb99a83e..24f848d51d 100644 --- a/spring-integration-core/src/main/java/org/springframework/integration/config/IntegrationSimpleEvaluationContextFactoryBean.java +++ b/spring-integration-core/src/main/java/org/springframework/integration/config/IntegrationSimpleEvaluationContextFactoryBean.java @@ -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 functionEntry : getFunctions().entrySet()) { evaluationContext.setVariable(functionEntry.getKey(), functionEntry.getValue());