Blame SOURCES/tomcat-9.0-JDTCompiler.patch

1a47f7
diff -up ./java/org/apache/jasper/compiler/JDTCompiler.java ./java/org/apache/jasper/compiler/JDTCompiler.java
1a47f7
index 2e361f2..277d8f4 100644
1a47f7
--- java/org/apache/jasper/compiler/JDTCompiler.java
1a47f7
+++ java/org/apache/jasper/compiler/JDTCompiler.java
1a47f7
@@ -310,7 +310,7 @@ public class JDTCompiler extends org.apache.jasper.compiler.Compiler {
1a47f7
             } else if(opt.equals("15")) {
1a47f7
                 settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_15);
1a47f7
             } else if(opt.equals("16")) {
1a47f7
-                settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_16);
1a47f7
+                settings.put(CompilerOptions.OPTION_Source, "16");
1a47f7
             } else if(opt.equals("17")) {
1a47f7
                 // Constant not available in latest ECJ version that runs on
1a47f7
                 // Java 8.
1a47f7
@@ -377,8 +377,8 @@ public class JDTCompiler extends org.apache.jasper.compiler.Compiler {
1a47f7
                 settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_15);
1a47f7
                 settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_15);
1a47f7
             } else if(opt.equals("16")) {
1a47f7
-                settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_16);
1a47f7
-                settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_16);
1a47f7
+                settings.put(CompilerOptions.OPTION_TargetPlatform, "16");
1a47f7
+                settings.put(CompilerOptions.OPTION_Compliance, "16");
1a47f7
             } else if(opt.equals("17")) {
1a47f7
                 // Constant not available in latest ECJ version that runs on
1a47f7
                 // Java 8.