-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
None
-
None
In JspInitializationListener there is a comment saying
if the servlet version is 3.1 or higher, setup a ELResolver which allows usage of static fields java.lang.*
However the conditional following the comment is not testing for "3.1 or higher":
if (servletContext.getEffectiveMajorVersion() >= 3 && servletContext.getEffectiveMinorVersion() >= 1) {
note that e.g. for 4.0 the expression is false
To include 4.0, the expression should be something like
if (servletContext.getEffectiveMajorVersion() > 3 || (servletContext.getEffectiveMajorVersion() == 3 && servletContext.getEffectiveMinorVersion() >= 1)) {
- duplicates
-
WFLY-11065 Usage of static fields from java.lang classes as EL expressions in JSPs doesn't work for servlet 4.0
- Closed