You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by ju...@apache.org on 2026/07/19 12:25:51 UTC

(tomee-tck) 01/07: Set the EL variable.mapper porting property and clear the webprofile exclusions

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

jungm pushed a commit to branch ee11
in repository https://gitbox.apache.org/repos/asf/tomee-tck.git

commit a9e24b94359e3e625b79894364d618060a45b5da
Author: Markus Jung <ju...@apache.org>
AuthorDate: Sun Jul 19 09:25:08 2026 +0200

    Set the EL variable.mapper porting property and clear the webprofile exclusions
---
 environment/tck/ts.jte                             |  6 ++++++
 runner-webprofile/KNOWN_FAILURES.md                |  1 -
 .../exclusions/expression-language.txt             | 25 ++++++++++------------
 runner-webprofile/platform-suite.tsv               |  2 +-
 runner-webprofile/run/pom.xml                      |  6 ++++++
 5 files changed, 24 insertions(+), 16 deletions(-)

diff --git a/environment/tck/ts.jte b/environment/tck/ts.jte
index 9613a8a..7ac190e 100644
--- a/environment/tck/ts.jte
+++ b/environment/tck/ts.jte
@@ -17,6 +17,12 @@ webServerHost=localhost
 webServerPort=8080
 logical.hostname.servlet=localhost
 
+# Vendor VariableMapper implementation the expression-language TCK's
+# VarMapperELContext instantiates from the harness properties bag (testProps);
+# Tomcat's Jasper EL provides it. Reaches the JSP and servlet vehicle tests
+# that build the context inside the container.
+variable.mapper=org.apache.el.lang.VariableMapperImpl
+
 user=j2ee
 password=j2ee
 authuser=javajoe
diff --git a/runner-webprofile/KNOWN_FAILURES.md b/runner-webprofile/KNOWN_FAILURES.md
index 2fc05a0..53d89be 100644
--- a/runner-webprofile/KNOWN_FAILURES.md
+++ b/runner-webprofile/KNOWN_FAILURES.md
@@ -32,7 +32,6 @@ them, but retaining one method would not constitute useful Tags coverage.
 | `enterprise-beans-30` | Twelve lifecycle, managed-bean, and singleton-concurrency vehicle classes | Java 21, 2026-07-14 | A failed CDI/EJB deployment leaves deployment IDs registered in TomEE. Related applications then fail with `DuplicateDeploymentIdException` rather than reaching their assertions. |
 | `enterprise-beans-30` | Twenty-one bean- and container-managed transaction vehicle classes | Java 21, 2026-07-14 | TomEE reports that an EJB started but did not complete a transaction while the tests exercise transaction-attribute semantics across singleton, stateful, and stateless beans. |
 | `signature` | Both Web Profile signature vehicle wrappers | Java 21, 2026-07-14 | TomEE's `webprofile` distribution exposes Jakarta Batch and Jakarta Messaging packages through its combined `jakartaee-api` jar even though these optional technologies are not declared by `javaee.level=web`. The required Web Profile packages, including the corrected Jakarta Tags API, pass the signature check. Optional technologies must instead be removed from this distribution or declared and covered by t [...]
-| `expression-language` | Method-expression and method-reference tests in JSP and servlet vehicles, plus two client-side variable-mapper classes | Java 21, 2026-07-14 | Tomcat EL 6.0 fails Jakarta EL 6 overload-selection assertions for `MethodExpression`, while its `StandardELContext` supplies no `VariableMapper` to method-reference or variable-binding tests. The remaining 66 Platform EL classes stay enabled. |
 | `json-binding` | Serializer customization CDI test in JSP and servlet vehicles | Java 21, 2026-07-14 | TomEE's Johnzon integration does not inject the CDI-managed field in the `@JsonbTypeDeserializer` used for a nested generic type. CDI adapter injection and provider-selection tests remain covered. |
 | `transactions` | Four `jta.ee.transactional.ClientEjblite*Test` vehicle classes | Java 21, 2026-07-14 | TomEE's CDI transactional interceptors fail transaction propagation, rollback-rule, and `TransactionScoped` context assertions across the servlet, JSP, JSF, and filtered-servlet vehicles. A failed assertion can leave transaction state active and cascade into later methods, so the affected vehicle classes are excluded as a unit. |
 | `transactions` | JSP and servlet vehicles for `UserTransaction` rollback, `setRollbackOnly`, and timeout (six classes) | Java 21, 2026-07-14 | TomEE misses required `IllegalStateException`/`RollbackException` outcomes, and timed-out transactions remain associated with request threads. The resulting `NotSupportedException` failures move between methods according to execution order, so method-level exclusions would be unstable. Begin, commit, and status classes remain covered. |
diff --git a/runner-webprofile/exclusions/expression-language.txt b/runner-webprofile/exclusions/expression-language.txt
index 3856635..9cc4d44 100644
--- a/runner-webprofile/exclusions/expression-language.txt
+++ b/runner-webprofile/exclusions/expression-language.txt
@@ -1,14 +1,11 @@
-# Java 21, 2026-07-14: Tomcat EL 6.0 does not satisfy the TCK's overload
-# selection assertions for MethodExpression, and its StandardELContext exposes
-# no VariableMapper to the MethodReference test. Both failures reproduce in JSP
-# and servlet vehicles; the other 68 Platform EL classes remain covered.
-**/methodexpression/ELClientJspTest.java
-**/methodexpression/ELClientServletTest.java
-**/methodreference/ELClientJspTest.java
-**/methodreference/ELClientServletTest.java
-
-# Tomcat's EL implementation is also used for the client-only mapper tests.
-# Its StandardELContext returns a null VariableMapper, so both classes fail
-# before their binding assertions can execute.
-**/api/jakarta_el/variablemapper/ELClientTest.java
-**/spec/mapper/ELClientTest.java
+# Jakarta EE Platform TCK expression-language partition against Tomcat's
+# Jasper EL, the implementation bundled in the TomEE distribution. The
+# partition runs green with no exclusions: all 72 classes pass. The runner
+# supplies the vendor VariableMapper implementation the TCK's
+# VarMapperELContext instantiates through the variable.mapper porting
+# property (org.apache.el.lang.VariableMapperImpl), set on the client JVM
+# (runner-webprofile/run/pom.xml) and in the harness properties bag the JSP
+# and servlet vehicle tests read (environment/tck/ts.jte).
+#
+# Format: maven-surefire excludesFile patterns, applied through
+# -Dtck.exclusions.file (see run-platform-suite.sh).
diff --git a/runner-webprofile/platform-suite.tsv b/runner-webprofile/platform-suite.tsv
index be8fa24..f72306c 100644
--- a/runner-webprofile/platform-suite.tsv
+++ b/runner-webprofile/platform-suite.tsv
@@ -5,7 +5,7 @@
 jdbc	jdbc-platform-tck	javatest	web & tck-javatest	152	152	**/*JSP.java,**/*Servlet.java
 enterprise-beans-30	ejb30	javatest	web & tck-javatest	282	170	**/*Test.java
 enterprise-beans-32	ejb32	javatest	web & tck-javatest	72	48	**/*Test.java
-expression-language	el-platform-tck	javatest	web & tck-javatest	72	66	**/*Test.java
+expression-language	el-platform-tck	javatest	web & tck-javatest	72	72	**/*Test.java
 json-binding	jsonb-platform-tck	javatest	web & tck-javatest	6	4	**/*Test.java
 json-processing	jsonp-platform-tck	javatest	web & tck-javatest	4	4	**/*Test.java
 pages	pages-platform-tck	servlet	web & !tck-javatest	2	2	**/*IT.java
diff --git a/runner-webprofile/run/pom.xml b/runner-webprofile/run/pom.xml
index 8a1a3e3..694f902 100644
--- a/runner-webprofile/run/pom.xml
+++ b/runner-webprofile/run/pom.xml
@@ -404,6 +404,12 @@
             <openejb.jaxrs.fail-on-constrainedto>false</openejb.jaxrs.fail-on-constrainedto>
             <ts_home>${project.build.directory}</ts_home>
             <junit.log.traceflag>${tck.trace}</junit.log.traceflag>
+            <!-- Vendor VariableMapper implementation the expression-language
+                 partition's TCK VarMapperELContext instantiates for the
+                 client-side variablemapper and mapper tests; Tomcat's Jasper
+                 EL provides it. The JSP and servlet vehicle tests read the
+                 same property from the harness bag set in environment/tck/ts.jte. -->
+            <variable.mapper>org.apache.el.lang.VariableMapperImpl</variable.mapper>
           </systemPropertyVariables>
         </configuration>
         <executions>