diff --git a/pom.xml b/pom.xml
index 102e573..4f2edce 100644
--- a/pom.xml
+++ b/pom.xml
@@ -53,7 +53,7 @@
3.1.1
4.13.2
4.5.14
- 3.32.0
+ 3.39.0
5.0.0
3.6.1.Final
3.0.3.Final
diff --git a/src/main/java/org/apache/jasper/compiler/JDTCompiler.java b/src/main/java/org/apache/jasper/compiler/JDTCompiler.java
index b5a7cae..1c63416 100644
--- a/src/main/java/org/apache/jasper/compiler/JDTCompiler.java
+++ b/src/main/java/org/apache/jasper/compiler/JDTCompiler.java
@@ -292,7 +292,7 @@ public void cleanup() {
}
// Source JVM
- if(ctxt.getOptions().getCompilerSourceVM() != null) {
+ if (ctxt.getOptions().getCompilerSourceVM() != null) {
String opt = ctxt.getOptions().getCompilerSourceVM();
if(opt.equals("1.1")) {
settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_1);
@@ -332,17 +332,23 @@ public void cleanup() {
settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_18);
} else if (opt.equals("19")) {
settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_19);
+ } else if (opt.equals("20")) {
+ settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_20);
+ } else if (opt.equals("21")) {
+ settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_21);
+ } else if (opt.equals("22")) {
+ settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_22);
} else {
JasperLogger.COMPILER_LOGGER.unknownSourceJvm(opt);
- settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_11);
+ settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_17);
}
} else {
- // Default to 11
- settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_11);
+ // Default to 17
+ settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_17);
}
// Target JVM
- if(ctxt.getOptions().getCompilerTargetVM() != null) {
+ if (ctxt.getOptions().getCompilerTargetVM() != null) {
String opt = ctxt.getOptions().getCompilerTargetVM();
if(opt.equals("1.1")) {
settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_1);
@@ -397,14 +403,23 @@ public void cleanup() {
} else if (opt.equals("19")) {
settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_19);
settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_19);
+ } else if (opt.equals("20")) {
+ settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_20);
+ settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_20);
+ } else if (opt.equals("21")) {
+ settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_21);
+ settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_21);
+ } else if (opt.equals("22")) {
+ settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_22);
+ settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_22);
} else {
JasperLogger.COMPILER_LOGGER.unknownTargetJvm(opt);
- settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_11);
+ settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_17);
}
} else {
- // Default to 11
- settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_11);
- settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_11);
+ // Default to 17
+ settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_17);
+ settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_17);
}
final IProblemFactory problemFactory = new DefaultProblemFactory(Locale.getDefault());