31 lines
2.1 KiB
Diff
31 lines
2.1 KiB
Diff
--- java/org/apache/jasper/compiler/JDTCompiler.java.orig 2025-02-04 19:19:35.610448198 +0100
|
|
+++ java/org/apache/jasper/compiler/JDTCompiler.java 2025-02-04 19:22:46.320745556 +0100
|
|
@@ -314,9 +314,9 @@ public class JDTCompiler extends org.apa
|
|
} else if(opt.equals("17")) {
|
|
settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_17);
|
|
} else if(opt.equals("18")) {
|
|
- settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_18);
|
|
+ settings.put(CompilerOptions.OPTION_Source, "18");
|
|
} else if (opt.equals("19")) {
|
|
- settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_19);
|
|
+ settings.put(CompilerOptions.OPTION_Source, "19");
|
|
} else if (opt.equals("20")) {
|
|
// Constant not available in latest ECJ version shipped with
|
|
// Tomcat. May be supported in a snapshot build.
|
|
@@ -389,11 +389,11 @@ public class JDTCompiler extends org.apa
|
|
settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_17);
|
|
settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_17);
|
|
} else if(opt.equals("18")) {
|
|
- settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_18);
|
|
- settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_18);
|
|
+ settings.put(CompilerOptions.OPTION_TargetPlatform, "18");
|
|
+ settings.put(CompilerOptions.OPTION_Compliance, "18");
|
|
} else if (opt.equals("19")) {
|
|
- settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_19);
|
|
- settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_19);
|
|
+ settings.put(CompilerOptions.OPTION_TargetPlatform, "19");
|
|
+ settings.put(CompilerOptions.OPTION_Compliance, "19");
|
|
} else if (opt.equals("20")) {
|
|
// Constant not available in latest ECJ version shipped with
|
|
// Tomcat. May be supported in a snapshot build.
|