WW-5533 Add compilation support for Jakarta EE 11

This commit is contained in:
Kusal Kithul-Godage
2025-02-24 21:29:14 +11:00
parent d2cb444bcf
commit fa951718dc
6 changed files with 22 additions and 9 deletions
@@ -57,7 +57,7 @@ public class ScopeELResolver extends ELResolver {
/**
* {@inheritDoc}
*/
@Override
// @Override // To allow compilation with Maven profile jakartaee11 where this interface method does not exist
public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object base) {
if (base != null) {
return Collections.emptyIterator();
@@ -47,7 +47,7 @@ public class TilesContextBeanELResolver extends ELResolver {
}
/** {@inheritDoc} */
@Override
// @Override // To allow compilation with Maven profile jakartaee11 where this interface method does not exist
public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object base) {
List<FeatureDescriptor> list = new ArrayList<>();
@@ -70,7 +70,7 @@ public class TilesContextELResolver extends ELResolver {
/**
* {@inheritDoc}
*/
@Override
// @Override // To allow compilation with Maven profile jakartaee11 where this interface method does not exist
public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context,
Object base) {
// only resolve at the root of the context