| |
@@ -1,16 +1,17 @@
|
| |
- diff -up ./java/org/apache/jasper/compiler/JDTCompiler.java.orig ./java/org/apache/jasper/compiler/JDTCompiler.java
|
| |
- --- java/org/apache/jasper/compiler/JDTCompiler.java.orig 2021-07-07 11:31:21.583507995 +0800
|
| |
- +++ java/org/apache/jasper/compiler/JDTCompiler.java 2021-07-07 11:35:13.009251246 +0800
|
| |
- @@ -310,7 +310,7 @@ public class JDTCompiler extends org.apa
|
| |
+ diff -up ./java/org/apache/jasper/compiler/JDTCompiler.java ./java/org/apache/jasper/compiler/JDTCompiler.java
|
| |
+ index 2e361f2..277d8f4 100644
|
| |
+ --- java/org/apache/jasper/compiler/JDTCompiler.java
|
| |
+ +++ java/org/apache/jasper/compiler/JDTCompiler.java
|
| |
+ @@ -310,7 +310,7 @@ public class JDTCompiler extends org.apache.jasper.compiler.Compiler {
|
| |
} 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 shipped with
|
| |
- // Tomcat. May be supported in a snapshot build.
|
| |
- @@ -372,8 +372,8 @@ public class JDTCompiler extends org.apa
|
| |
+ // Constant not available in latest ECJ version that runs on
|
| |
+ // Java 8.
|
| |
+ @@ -377,8 +377,8 @@ public class JDTCompiler extends org.apache.jasper.compiler.Compiler {
|
| |
settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_15);
|
| |
settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_15);
|
| |
} else if(opt.equals("16")) {
|
| |
@@ -19,5 +20,5 @@
|
| |
+ settings.put(CompilerOptions.OPTION_TargetPlatform, "16");
|
| |
+ settings.put(CompilerOptions.OPTION_Compliance, "16");
|
| |
} else if(opt.equals("17")) {
|
| |
- // Constant not available in latest ECJ version shipped with
|
| |
- // Tomcat. May be supported in a snapshot build.
|
| |
+ // Constant not available in latest ECJ version that runs on
|
| |
+ // Java 8.
|
| |
We may instead want to update straight to
9.0.59
, which I noticed has been released recently? https://tomcat.apache.org/tomcat-9.0-doc/changelog.htmlSuggests a notable ton of fixes relevant. Doesn't seem to be any CVEs in that (yet?), but we may as well while we're doing this.