23 lines
1.4 KiB
Diff
23 lines
1.4 KiB
Diff
--- apache-tomcat-9.0.98-src/java/org/apache/jasper/compiler/JDTCompiler.java 2025-01-06 17:29:55.096709905 +0100
|
|
+++ apache-tomcat-9.0.98-src/java/org/apache/jasper/compiler/JDTCompiler.java 2025-01-06 17:32:39.494486072 +0100
|
|
@@ -298,7 +298,7 @@
|
|
} else if (opt.equals("15")) {
|
|
settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_15);
|
|
} else if (opt.equals("16")) {
|
|
- settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_16);
|
|
+ settings.put(CompilerOptions.OPTION_Source, "16");
|
|
} else if (opt.equals("17")) {
|
|
// Constant not available in latest ECJ version that runs on
|
|
// Java 8.
|
|
@@ -395,8 +395,8 @@
|
|
settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_15);
|
|
settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_15);
|
|
} else if (opt.equals("16")) {
|
|
- settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_16);
|
|
- settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_16);
|
|
+ settings.put(CompilerOptions.OPTION_TargetPlatform, "16");
|
|
+ settings.put(CompilerOptions.OPTION_Compliance, "16");
|
|
} else if (opt.equals("17")) {
|
|
// Constant not available in latest ECJ version that runs on
|
|
// Java 8.
|