From 030364b75302d1cc0f6e02483bdc694e4bdd7e0a Mon Sep 17 00:00:00 2001 From: Alwin Joseph Date: Fri, 10 May 2024 18:20:07 +0530 Subject: [PATCH] jstl - correct versions, fix compilation - replace JspException.getRootCause with getCause --- glassfish-runner/jstl-tck/pom.xml | 12 +- jstl/pom.xml | 117 ++++++++++-------- .../jstl/common/tags/ExceptionCheckTag.java | 2 +- 3 files changed, 74 insertions(+), 57 deletions(-) diff --git a/glassfish-runner/jstl-tck/pom.xml b/glassfish-runner/jstl-tck/pom.xml index 5fddfdc2e0..343252688c 100644 --- a/glassfish-runner/jstl-tck/pom.xml +++ b/glassfish-runner/jstl-tck/pom.xml @@ -19,12 +19,12 @@ org.glassfish standalone-tck - 10.0.0-SNAPSHOT + 11.0.0-SNAPSHOT ../pom.xml jakarta glassfish.jstl-tck - 10.0.0-SNAPSHOT + 11.0.0-SNAPSHOT jar @@ -45,7 +45,7 @@ jdbc:derby://${jstl.db.server}:${jstl.db.port}/${jstl.db.name};create=true cts1 5.9.1 - jstl-tck + jakarta-tags-tck 4.0.0 @@ -57,8 +57,8 @@ jakarta.tck - jstl-tck - 11.0.0-SNAPSHOT + ${tck.artifactId} + ${tck.version} org.glassfish.main.common @@ -422,7 +422,7 @@ ${project.build.directory}/${glassfish.toplevel.dir}/glassfish/modules/jakarta.servlet.jsp-api.jar ${project.build.directory}/${glassfish.toplevel.dir}/glassfish/modules/jakarta.servlet.jsp.jstl-api.jar - jakartatck:jstl-tck + jakarta.tck:${tck.artifactId} ${project.build.directory}/${glassfish.toplevel.dir} ${project.build.directory}/${glassfish.toplevel.dir} diff --git a/jstl/pom.xml b/jstl/pom.xml index f32733999f..63ff197724 100644 --- a/jstl/pom.xml +++ b/jstl/pom.xml @@ -26,7 +26,8 @@ 11.0.0-SNAPSHOT - jstl-tck + jakarta-tags-tck + 4.0.0 jar JSTL @@ -37,14 +38,27 @@ 6.1.0-M2 4.0.0-M2 5.9.1 - 17 - 17 ${project.groupId} common + 11.0.0-SNAPSHOT + + + ${project.groupId} + runtime + 11.0.0-SNAPSHOT + + + ${project.groupId} + libutil + 11.0.0-SNAPSHOT + + + javatest + javatest jakarta.servlet.jsp @@ -59,10 +73,12 @@ jakarta.servlet.jsp.jstl jakarta.servlet.jsp.jstl-api + 3.0.0 jakarta.transaction jakarta.transaction-api + 2.0.1 org.junit.jupiter @@ -81,54 +97,16 @@ - - - tck-build - - true - - - - - maven-compiler-plugin - 2.3.2 - - - maven-surefire-plugin - 3.0.0-M5 - - - org.apache.maven.plugins - maven-jar-plugin - 3.2.0 - - - - src/main/java - - **/*.xml - - - - - - - org.apache.maven.plugins - maven-source-plugin - - - attach-sources - - jar - - - - - - - - + ${bundle-name}-${project.version} + + + src/main/resources + + com/ + + + @@ -137,6 +115,45 @@ true + + maven-javadoc-plugin + + none + + + + org.apache.maven.plugins + maven-source-plugin + + + attach-sources + + jar-no-fork + + + + + + + + EFTL + + true + + + jakarta-tags-tck + EFTL + + + + EPL + + tags-tck + EPL + + + + diff --git a/jstl/src/main/java/com/sun/ts/tests/jstl/common/tags/ExceptionCheckTag.java b/jstl/src/main/java/com/sun/ts/tests/jstl/common/tags/ExceptionCheckTag.java index aa5b1b012e..dfbd1426f3 100644 --- a/jstl/src/main/java/com/sun/ts/tests/jstl/common/tags/ExceptionCheckTag.java +++ b/jstl/src/main/java/com/sun/ts/tests/jstl/common/tags/ExceptionCheckTag.java @@ -171,7 +171,7 @@ public void doCatch(java.lang.Throwable t) { sb.append(" was thrown!"); if (t instanceof JspException && _checkRootCause) { - Throwable rt = ((JspException) t).getRootCause(); + Throwable rt = ((JspException) t).getCause(); if (rt != null) { if (_rootException == null) { sb.append("
\nThe root cause of Exception defined");