mirror of
https://github.com/apache/struts.git
synced 2026-08-05 14:47:09 +00:00
Merge pull request #1233 from apache/WW-5533-jee11-supp
WW-5533 Add compilation support for Jakarta EE 11
This commit is contained in:
@@ -30,18 +30,25 @@ env:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build and Test
|
||||
name: Build and Test (JDK ${{ matrix.java }})${{ matrix.profile == '-Pjakartaee11' && ' with Jakarta EE 11' || matrix.profile }}
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
java: [ '17', '21' ]
|
||||
include:
|
||||
- java: '17'
|
||||
profile: ''
|
||||
- java: '21'
|
||||
profile: ''
|
||||
- java: '21'
|
||||
profile: '-Pjakartaee11'
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- uses: actions/setup-java@v4
|
||||
- name: Setup Java ${{ matrix.java }}
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: ${{ matrix.java }}
|
||||
cache: 'maven'
|
||||
- name: Build with Maven on Java ${{ matrix.java }}
|
||||
run: mvn -B -V -DskipAssembly verify --no-transfer-progress
|
||||
- name: Maven Verify on Java ${{ matrix.java }}${{ matrix.profile == '-Pjakartaee11' && ' (Jakarta EE 11)' || matrix.profile }}
|
||||
run: mvn -B -V -DskipAssembly verify ${{ matrix.profile }} --no-transfer-progress
|
||||
|
||||
-1
@@ -417,7 +417,6 @@ abstract class AbstractMultiPartRequestTest {
|
||||
assertThat(JakartaServletDiskFileUpload.isMultipartContent(mockRequest)).isTrue();
|
||||
|
||||
// when
|
||||
mockRequest.setCharacterEncoding(null);
|
||||
multiPart.setDefaultEncoding(StandardCharsets.ISO_8859_1.name());
|
||||
multiPart.parse(mockRequest, tempDir);
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user