Skip to content

Commit f67b55f

Browse files
committed
Switch to Tomcat 9.0.104 dependencies
This is expression language 3.0 (previously was 4.0 but only difference is namespace) This is the last (maintained) version still compatible with Java 8. Compare with https://tomcat.apache.org/whichversion.html. This closes #807
1 parent 94fd092 commit f67b55f

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

accesscontroltool-bundle/bnd.bnd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ org.apache.http.*;resolution:=optional,\
1616
org.bouncycastle.*;resolution:=optional,\
1717
org.apache.sling.commons.scheduler.*;resolution:=optional,\
1818
org.apache.jackrabbit.oak.spi.security.principal;version="[1.5.0,3)",\
19-
!jakarta.servlet*,\
19+
!javax.servlet.jsp.el,\
2020
*
2121

2222
# snakeyaml 2.0 uses multi version jars which are not supported: https://github.com/bndtools/bnd/issues/3514

accesscontroltool-bundle/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<description>The OSGi bundle containing all classes of the Access Control Tool.</description>
2525

2626
<properties>
27-
<tomcat.el.version>10.0.27</tomcat.el.version>
27+
<tomcat.el.version>9.0.104</tomcat.el.version>
2828
<oak.testing.version>1.48.0</oak.testing.version><!-- ITs require a newer version of Oak otherwise it won't work with Java 11 and certain classes for running the IT are not available -->
2929
</properties>
3030

accesscontroltool-bundle/src/main/java/biz/netcentric/cq/tools/actool/configreader/YamlMacroElEvaluator.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@
2222
import java.util.List;
2323
import java.util.Map;
2424

25-
import jakarta.el.ArrayELResolver;
26-
import jakarta.el.BeanELResolver;
27-
import jakarta.el.CompositeELResolver;
28-
import jakarta.el.ELContext;
29-
import jakarta.el.ELResolver;
30-
import jakarta.el.ExpressionFactory;
31-
import jakarta.el.FunctionMapper;
32-
import jakarta.el.ListELResolver;
33-
import jakarta.el.MapELResolver;
34-
import jakarta.el.ValueExpression;
35-
import jakarta.el.VariableMapper;
25+
import javax.el.ArrayELResolver;
26+
import javax.el.BeanELResolver;
27+
import javax.el.CompositeELResolver;
28+
import javax.el.ELContext;
29+
import javax.el.ELResolver;
30+
import javax.el.ExpressionFactory;
31+
import javax.el.FunctionMapper;
32+
import javax.el.ListELResolver;
33+
import javax.el.MapELResolver;
34+
import javax.el.ValueExpression;
35+
import javax.el.VariableMapper;
3636

3737
import org.apache.commons.lang3.ArrayUtils;
3838
import org.apache.commons.lang3.StringEscapeUtils;

accesscontroltool-bundle/src/test/java/biz/netcentric/cq/tools/actool/configreader/YamlMacroElEvaluatorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import org.junit.jupiter.api.BeforeEach;
2323
import org.junit.jupiter.api.Test;
2424

25-
import jakarta.el.ELException;
25+
import javax.el.ELException;
2626

2727
class YamlMacroElEvaluatorTest {
2828
private YamlMacroElEvaluator elEvaluator;

docs/AdvancedFeatures.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Expressions
44

5-
Expressions are evaluated using the [Jakarta Expression Language 4.0](https://jakarta.ee/specifications/expression-language/4.0/jakarta-expression-language-spec-4.0.html) (since v3.0.3 of the AC tool, before [javax.el EL 2.2](https://docs.oracle.com/javaee/6/tutorial/doc/gjddd.html) was used). They can be used anywhere in the YAML and are processed after YAML parsing and interpolation. Note though that only the [*Immediate Evaluation* syntax `${...}`](https://docs.oracle.com/javaee/6/tutorial/doc/bnahr.html#bnahs) is supported but not the *Deferred Evaluation* syntax (`#{...}`).
5+
Expressions are evaluated using the [Expression Language 3.0](https://jcp.org/en/jsr/detail?id=341) (since v3.6.0 of the AC tool, before [javax.el EL 2.2](https://docs.oracle.com/javaee/6/tutorial/doc/gjddd.html) was used). They can be used anywhere in the YAML and are processed after YAML parsing and interpolation. Note though that only the [*Immediate Evaluation* syntax `${...}`](https://docs.oracle.com/javaee/6/tutorial/doc/bnahr.html#bnahs) is supported but not the *Deferred Evaluation* syntax (`#{...}`).
66

77
The following utility functions are made available to any EL expression used in YAML.
88
They can either be used standalone or combined with the [default EL operators](https://docs.oracle.com/javaee/6/tutorial/doc/bnaik.html).

0 commit comments

Comments
 (0)