You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2026/05/20 15:25:27 UTC

(tomcat) branch main updated: Add test case for EL argument mismatch fix

This is an automated email from the ASF dual-hosted git repository.

markt-asf 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 11f817aa2a Add test case for EL argument mismatch fix
11f817aa2a is described below

commit 11f817aa2acbef407122a9da16d1b0b3a028245a
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Wed May 20 14:29:01 2026 +0100

    Add test case for EL argument mismatch fix
---
 test/org/apache/el/parser/TestAstLambdaExpression.java | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/test/org/apache/el/parser/TestAstLambdaExpression.java b/test/org/apache/el/parser/TestAstLambdaExpression.java
index 83f21e2b27..7761f8baf0 100644
--- a/test/org/apache/el/parser/TestAstLambdaExpression.java
+++ b/test/org/apache/el/parser/TestAstLambdaExpression.java
@@ -156,6 +156,14 @@ public class TestAstLambdaExpression {
     }
 
 
+    @Test
+    public void testNested08() {
+        ELProcessor processor = new ELProcessor();
+        Object result = processor.getValue("(x -> (x -> x)(null))(42)", Integer.class);
+        Assert.assertNull(result);
+    }
+
+
     @Test
     public void testLambdaAsFunction01() {
         ELProcessor processor = new ELProcessor();


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org