This is an automated email from the ASF dual-hosted git repository.
rmaucher pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new 87fe54f691 Avoid evaluating twice
87fe54f691 is described below
commit 87fe54f691d497d72c53aa1146580e35f6996aac
Author: remm <[email protected]>
AuthorDate: Tue Sep 1 14:31:59 2026 +0200
Avoid evaluating twice
Found by code review.
---
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 95a4dc85f9..d93f82dae3 100644
--- a/java/org/apache/el/parser/AstConcatenation.java
+++ b/java/org/apache/el/parser/AstConcatenation.java
@@ -58,8 +58,8 @@ public class AstConcatenation extends SimpleNode {
}
// Coerce the two child nodes to string and then concatenate
- String s1 = ELSupport.coerceToString(ctx, children[0].getValue(ctx));
- String s2 = ELSupport.coerceToString(ctx, children[1].getValue(ctx));
+ String s1 = ELSupport.coerceToString(ctx, obj0);
+ String s2 = ELSupport.coerceToString(ctx, obj1);
return s1 + s2;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]