OpenLiberty/open-liberty#25257
Differences between Expression Language 6.0 and Expression Language 5.0
The main updates are the ELResolvers.
New Additions:
- Record Support:
java.lang.Record, introduced in Java 17, is now supported by default via jakarta.el.RecordELResolver.
- Optional Support:
java.lang.Optional, introduced in Java 8, is now supported via jakarta.el.OptionalELResolver. Note that it is not enabled by default.
- Array Length Property: Arrays now support the
length property via the official API. However, Open Liberty uses Tomcat's Expression Language API and implementation, and the length property has been supported for years.
Removals:
- Feature Descriptors: The
getFeatureDescriptors has been removed from jakarta.el.ELResolver class.
- Security Manager: All SecurityManager references within the API have been removed to align with the newer JDKs.
OpenLiberty/open-liberty#25257
Differences between Expression Language 6.0 and Expression Language 5.0
The main updates are the ELResolvers.
New Additions:
java.lang.Record, introduced in Java 17, is now supported by default viajakarta.el.RecordELResolver.java.lang.Optional, introduced in Java 8, is now supported viajakarta.el.OptionalELResolver. Note that it is not enabled by default.lengthproperty via the official API. However, Open Liberty uses Tomcat's Expression Language API and implementation, and thelengthproperty has been supported for years.Removals:
getFeatureDescriptorshas been removed fromjakarta.el.ELResolverclass.