This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new c5bbf38efe Better comment - aligns with 9.0.x
c5bbf38efe is described below
commit c5bbf38efe7b19b4ce35407a3e6d153144090aba
Author: Mark Thomas <[email protected]>
AuthorDate: Tue Feb 27 08:59:42 2024 +0000
Better comment - aligns with 9.0.x
---
java/org/apache/jasper/compiler/JDTCompiler.java | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/java/org/apache/jasper/compiler/JDTCompiler.java
b/java/org/apache/jasper/compiler/JDTCompiler.java
index 283738d319..2179f3a7e7 100644
--- a/java/org/apache/jasper/compiler/JDTCompiler.java
+++ b/java/org/apache/jasper/compiler/JDTCompiler.java
@@ -318,18 +318,18 @@ public class JDTCompiler extends
org.apache.jasper.compiler.Compiler {
} else if (opt.equals("19")) {
settings.put(CompilerOptions.OPTION_Source,
CompilerOptions.VERSION_19);
} else if (opt.equals("20")) {
- // Constant not available in ECJ version shipped with
- // Tomcat. May be supported in a later or snapshot build.
+ // Constant not available in latest ECJ version that runs on
+ // Java 11.
// This is checked against the actual version below.
settings.put(CompilerOptions.OPTION_Source, "20");
} else if (opt.equals("21")) {
- // Constant not available in ECJ version shipped with
- // Tomcat. May be supported in a later or snapshot build.
+ // Constant not available in latest ECJ version that runs on
+ // Java 11.
// This is checked against the actual version below.
settings.put(CompilerOptions.OPTION_Source, "21");
} else if (opt.equals("22")) {
- // Constant not available in ECJ version shipped with
- // Tomcat. May be supported in a later or snapshot build.
+ // Constant not available in latest ECJ version that runs on
+ // Java 11.
// This is checked against the actual version below.
settings.put(CompilerOptions.OPTION_Source, "22");
} else {
@@ -400,20 +400,20 @@ public class JDTCompiler extends
org.apache.jasper.compiler.Compiler {
settings.put(CompilerOptions.OPTION_TargetPlatform,
CompilerOptions.VERSION_19);
settings.put(CompilerOptions.OPTION_Compliance,
CompilerOptions.VERSION_19);
} else if (opt.equals("20")) {
- // Constant not available in ECJ version shipped with
- // Tomcat. May be supported in a later or snapshot build.
+ // Constant not available in latest ECJ version that runs on
+ // Java 11.
// This is checked against the actual version below.
settings.put(CompilerOptions.OPTION_TargetPlatform, "20");
settings.put(CompilerOptions.OPTION_Compliance, "20");
} else if (opt.equals("21")) {
- // Constant not available in ECJ version shipped with
- // Tomcat. May be supported in a later or snapshot build.
+ // Constant not available in latest ECJ version that runs on
+ // Java 11.
// This is checked against the actual version below.
settings.put(CompilerOptions.OPTION_TargetPlatform, "21");
settings.put(CompilerOptions.OPTION_Compliance, "21");
} else if (opt.equals("22")) {
- // Constant not available in ECJ version shipped with
- // Tomcat. May be supported in a later or snapshot build.
+ // Constant not available in latest ECJ version that runs on
+ // Java 11.
// This is checked against the actual version below.
settings.put(CompilerOptions.OPTION_TargetPlatform, "22");
settings.put(CompilerOptions.OPTION_Compliance, "22");
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]