This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 3046cc34b2 Add a couple of tests based on Jakarta EL issue report
3046cc34b2 is described below
commit 3046cc34b21618836deef5e10dd20762240171de
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/javax/el/TestELProcessor.java | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/test/javax/el/TestELProcessor.java
b/test/javax/el/TestELProcessor.java
index afa50d41fe..d84d262bf4 100644
--- a/test/javax/el/TestELProcessor.java
+++ b/test/javax/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]