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

markt-asf 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 71946d9f70 Add a couple of tests based on Jakarta EL issue report
71946d9f70 is described below

commit 71946d9f708e47557e137d6d20c10a5d3da62087
Author: Mark Thomas <[email protected]>
AuthorDate: Fri Nov 13 16:54:45 2026 +0000

    Add a couple of tests based on Jakarta EL issue report
    
    These already pass correctly on Tomcat
---
 test/jakarta/el/TestELProcessor.java | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/test/jakarta/el/TestELProcessor.java 
b/test/jakarta/el/TestELProcessor.java
index 4f25139054..8b5c154ffd 100644
--- a/test/jakarta/el/TestELProcessor.java
+++ b/test/jakarta/el/TestELProcessor.java
@@ -272,6 +272,12 @@ public class TestELProcessor {
     }
 
 
+    @Test
+    public void testDefineFunctionArraySpaceBeforeBrackets() throws Exception {
+        doDefineFunctionSignature("test", "void doIt(Integer [])", "test", 
"fn:test([1].stream().toArray())", "F");
+    }
+
+
     @Test
     public void testDefineFunctionVarArgsWithSpace() throws Exception {
         doDefineFunctionSignature("test", "void doIt( long ... )", "test", 
"fn:test(1,2)", "H");
@@ -290,6 +296,12 @@ public class TestELProcessor {
     }
 
 
+    @Test
+    public void testDefineFunctionInvalidTrailingNonsense() {
+        doDefineFunctionInvalidSignature("void doIt(int) nonsense");
+    }
+
+
     @Test
     public void testDefineFunctionInvalidTrailingComma() {
         doDefineFunctionInvalidSignature("void doIt(int,)");


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to