2024-11-07 20:14:39 +08:00
|
|
|
diff --git a/build.xml b/build.xml
|
|
|
|
|
index 5c09831..9efcd81 100644
|
|
|
|
|
--- a/build.xml
|
|
|
|
|
+++ b/build.xml
|
|
|
|
|
@@ -108,8 +108,8 @@
|
|
|
|
|
<!-- Keep in sync with webapps/docs/tomcat-docs.xsl -->
|
|
|
|
|
<property name="compile.release" value="8"/>
|
|
|
|
|
<property name="min.java.version" value="8"/>
|
|
|
|
|
- <property name="build.java.version" value="17"/>
|
|
|
|
|
- <property name="release.java.version" value="17"/>
|
|
|
|
|
+ <property name="build.java.version" value="1.8"/>
|
|
|
|
|
+ <property name="release.java.version" value="1.8"/>
|
|
|
|
|
|
|
|
|
|
<!-- Check Java Build Version -->
|
|
|
|
|
<fail message="Java version ${build.java.version} or newer is required (${java.version} is installed)">
|
|
|
|
|
@@ -1497,8 +1497,6 @@
|
|
|
|
|
<target name="deploy" depends="package,build-docs,build-tomcat-jdbc,compile-webapp-examples"
|
|
|
|
|
description="Default. Builds a working Tomcat instance">
|
|
|
|
|
|
|
|
|
|
- <copy tofile="${tomcat.build}/bin/commons-daemon.jar" file="${commons-daemon.jar}" />
|
|
|
|
|
-
|
|
|
|
|
<!-- Copy scripts -->
|
|
|
|
|
<copy todir="${tomcat.build}/bin">
|
|
|
|
|
<fileset dir="bin">
|
|
|
|
|
diff --git a/java/org/apache/jasper/compiler/JDTCompiler.java b/java/org/apache/jasper/compiler/JDTCompiler.java
|
|
|
|
|
index 1ed4ef4..8339eff 100644
|
|
|
|
|
--- a/java/org/apache/jasper/compiler/JDTCompiler.java
|
|
|
|
|
+++ b/java/org/apache/jasper/compiler/JDTCompiler.java
|
|
|
|
|
@@ -297,17 +297,17 @@ public class JDTCompiler extends org.apache.jasper.compiler.Compiler {
|
2025-02-21 14:49:34 +08:00
|
|
|
} else if (opt.equals("10")) {
|
2024-11-07 20:14:39 +08:00
|
|
|
settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_10);
|
2025-02-21 14:49:34 +08:00
|
|
|
} else if (opt.equals("11")) {
|
2024-11-07 20:14:39 +08:00
|
|
|
- settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_11);
|
|
|
|
|
+ settings.put(CompilerOptions.OPTION_Source, "11");
|
2025-02-21 14:49:34 +08:00
|
|
|
} else if (opt.equals("12")) {
|
2024-11-07 20:14:39 +08:00
|
|
|
- settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_12);
|
|
|
|
|
+ settings.put(CompilerOptions.OPTION_Source, "12");
|
2025-02-21 14:49:34 +08:00
|
|
|
} else if (opt.equals("13")) {
|
2024-11-07 20:14:39 +08:00
|
|
|
- settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_13);
|
|
|
|
|
+ settings.put(CompilerOptions.OPTION_Source, "13");
|
2025-02-21 14:49:34 +08:00
|
|
|
} else if (opt.equals("14")) {
|
2024-11-07 20:14:39 +08:00
|
|
|
- settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_14);
|
|
|
|
|
+ settings.put(CompilerOptions.OPTION_Source, "14");
|
2025-02-21 14:49:34 +08:00
|
|
|
} else if (opt.equals("15")) {
|
2024-11-07 20:14:39 +08:00
|
|
|
- settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_15);
|
|
|
|
|
+ settings.put(CompilerOptions.OPTION_Source, "15");
|
2025-02-21 14:49:34 +08:00
|
|
|
} else if (opt.equals("16")) {
|
2024-11-07 20:14:39 +08:00
|
|
|
- settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_16);
|
|
|
|
|
+ settings.put(CompilerOptions.OPTION_Source, "16");
|
2025-02-21 14:49:34 +08:00
|
|
|
} else if (opt.equals("17")) {
|
2024-11-07 20:14:39 +08:00
|
|
|
// Constant not available in latest ECJ version that runs on
|
|
|
|
|
// Java 8.
|
|
|
|
|
@@ -389,23 +389,23 @@ public class JDTCompiler extends org.apache.jasper.compiler.Compiler {
|
|
|
|
|
settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_10);
|
|
|
|
|
settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_10);
|
2025-02-21 14:49:34 +08:00
|
|
|
} else if (opt.equals("11")) {
|
2024-11-07 20:14:39 +08:00
|
|
|
- settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_11);
|
|
|
|
|
- settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_11);
|
|
|
|
|
+ settings.put(CompilerOptions.OPTION_TargetPlatform, "11");
|
|
|
|
|
+ settings.put(CompilerOptions.OPTION_Compliance, "11");
|
2025-02-21 14:49:34 +08:00
|
|
|
} else if (opt.equals("12")) {
|
2024-11-07 20:14:39 +08:00
|
|
|
- settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_12);
|
|
|
|
|
- settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_12);
|
|
|
|
|
+ settings.put(CompilerOptions.OPTION_TargetPlatform, "12");
|
|
|
|
|
+ settings.put(CompilerOptions.OPTION_Compliance, "12");
|
2025-02-21 14:49:34 +08:00
|
|
|
} else if (opt.equals("13")) {
|
2024-11-07 20:14:39 +08:00
|
|
|
- settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_13);
|
|
|
|
|
- settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_13);
|
|
|
|
|
+ settings.put(CompilerOptions.OPTION_TargetPlatform, "13");
|
|
|
|
|
+ settings.put(CompilerOptions.OPTION_Compliance, "13");
|
2025-02-21 14:49:34 +08:00
|
|
|
} else if (opt.equals("14")) {
|
2024-11-07 20:14:39 +08:00
|
|
|
- settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_14);
|
|
|
|
|
- settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_14);
|
|
|
|
|
+ settings.put(CompilerOptions.OPTION_TargetPlatform, "14");
|
|
|
|
|
+ settings.put(CompilerOptions.OPTION_Compliance, "14");
|
2025-02-21 14:49:34 +08:00
|
|
|
} else if (opt.equals("15")) {
|
2024-11-07 20:14:39 +08:00
|
|
|
- settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_15);
|
|
|
|
|
- settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_15);
|
|
|
|
|
+ settings.put(CompilerOptions.OPTION_TargetPlatform, "15");
|
|
|
|
|
+ settings.put(CompilerOptions.OPTION_Compliance, "15");
|
2025-02-21 14:49:34 +08:00
|
|
|
} else if (opt.equals("16")) {
|
2024-11-07 20:14:39 +08:00
|
|
|
- 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");
|
2025-02-21 14:49:34 +08:00
|
|
|
} else if (opt.equals("17")) {
|
2024-11-07 20:14:39 +08:00
|
|
|
// Constant not available in latest ECJ version that runs on
|
|
|
|
|
// Java 8.
|