This is an automated email from the ASF dual-hosted git repository.
rmaucher pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new 556cab8cf1 Revert "Avoid evaluating twice"
556cab8cf1 is described below
commit 556cab8cf127177ea54195c19d9987542db5154f
Author: remm <[email protected]>
AuthorDate: Tue Sep 1 15:54:35 2026 +0200
Revert "Avoid evaluating twice"
This reverts commit c4ae597d3702f91241e13a7c50fcea6b8f5de3f6.
---
java/org/apache/el/parser/AstConcatenation.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/java/org/apache/el/parser/AstConcatenation.java
b/java/org/apache/el/parser/AstConcatenation.java
index cb340e446b..ae83893170 100644
--- a/java/org/apache/el/parser/AstConcatenation.java
+++ b/java/org/apache/el/parser/AstConcatenation.java
@@ -32,8 +32,8 @@ public class AstConcatenation extends SimpleNode {
@Override
public Object getValue(EvaluationContext ctx) throws ELException {
// Coerce the two child nodes to string and then concatenate
- String s1 = ELSupport.coerceToString(ctx, obj0);
- String s2 = ELSupport.coerceToString(ctx, obj1);
+ String s1 = ELSupport.coerceToString(ctx, children[0].getValue(ctx));
+ String s2 = ELSupport.coerceToString(ctx, children[1].getValue(ctx));
return s1 + s2;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]