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

commit deba388795a375769b4fc83ee27ddca26efd8265
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 6c57769332..b8677b90ee 100644
--- a/test/jakarta/el/TestELProcessor.java
+++ b/test/jakarta/el/TestELProcessor.java
@@ -272,6 +272,12 @@ public class TestELProcessor extends ELBaseTest {
     }
 
 
+    @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 extends ELBaseTest {
     }
 
 
+    @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