2019-04-22 19:57:57 +00:00
|
|
|
Index: apache-tomcat-9.0.19-src/java/org/apache/jasper/compiler/JDTCompiler.java
|
2017-12-02 23:45:46 +00:00
|
|
|
===================================================================
|
2019-04-22 19:57:57 +00:00
|
|
|
--- apache-tomcat-9.0.19-src.orig/java/org/apache/jasper/compiler/JDTCompiler.java
|
|
|
|
+++ apache-tomcat-9.0.19-src/java/org/apache/jasper/compiler/JDTCompiler.java
|
|
|
|
@@ -312,18 +312,18 @@ public class JDTCompiler extends org.apa
|
2014-05-20 11:53:20 +00:00
|
|
|
CompilerOptions.VERSION_1_7);
|
|
|
|
} else if(opt.equals("1.8")) {
|
|
|
|
settings.put(CompilerOptions.OPTION_Source,
|
|
|
|
- CompilerOptions.VERSION_1_8);
|
|
|
|
+ "1.8"); // CompilerOptions.VERSION_1_8
|
2018-08-16 13:14:11 +00:00
|
|
|
// Version format changed from Java 9 onwards.
|
|
|
|
// Support old format that was used in EA implementation as well
|
|
|
|
} else if(opt.equals("9") || opt.equals("1.9")) {
|
2016-04-22 09:40:16 +00:00
|
|
|
settings.put(CompilerOptions.OPTION_Source,
|
2018-08-16 13:14:11 +00:00
|
|
|
- CompilerOptions.VERSION_9);
|
2019-04-22 19:57:57 +00:00
|
|
|
+ "9"); // CompilerOptions.VERSION_9
|
2018-08-16 13:14:11 +00:00
|
|
|
} else if(opt.equals("10")) {
|
|
|
|
settings.put(CompilerOptions.OPTION_Source,
|
|
|
|
- CompilerOptions.VERSION_10);
|
2019-04-22 19:57:57 +00:00
|
|
|
+ "10"); // CompilerOptions.VERSION_10
|
|
|
|
} else if(opt.equals("11")) {
|
2014-05-20 11:53:20 +00:00
|
|
|
settings.put(CompilerOptions.OPTION_Source,
|
2019-04-22 19:57:57 +00:00
|
|
|
- CompilerOptions.VERSION_11);
|
|
|
|
+ "11"); // CompilerOptions.VERSION_11
|
|
|
|
} else if(opt.equals("12")) {
|
|
|
|
// Constant not available in latest ECJ version shipped with
|
|
|
|
// Tomcat. May be supported in a snapshot build.
|
|
|
|
@@ -377,26 +377,26 @@ public class JDTCompiler extends org.apa
|
|
|
|
CompilerOptions.VERSION_1_7);
|
|
|
|
} else if(opt.equals("1.8")) {
|
2014-05-20 11:53:20 +00:00
|
|
|
settings.put(CompilerOptions.OPTION_TargetPlatform,
|
2019-04-22 19:57:57 +00:00
|
|
|
- CompilerOptions.VERSION_1_8);
|
|
|
|
+ "1.8"); // CompilerOptions.VERSION_1_8
|
2014-05-20 11:53:20 +00:00
|
|
|
settings.put(CompilerOptions.OPTION_Compliance,
|
|
|
|
- CompilerOptions.VERSION_1_8);
|
|
|
|
+ "1.8"); // CompilerOptions.VERSION_1_8
|
2018-08-16 13:14:11 +00:00
|
|
|
// Version format changed from Java 9 onwards.
|
|
|
|
// Support old format that was used in EA implementation as well
|
|
|
|
} else if(opt.equals("9") || opt.equals("1.9")) {
|
|
|
|
settings.put(CompilerOptions.OPTION_TargetPlatform,
|
|
|
|
- CompilerOptions.VERSION_9);
|
2019-04-22 19:57:57 +00:00
|
|
|
+ "9"); // CompilerOptions.VERSION_9
|
2018-08-16 13:14:11 +00:00
|
|
|
settings.put(CompilerOptions.OPTION_Compliance,
|
|
|
|
- CompilerOptions.VERSION_9);
|
2019-04-22 19:57:57 +00:00
|
|
|
+ "9"); // CompilerOptions.VERSION_9
|
2018-08-16 13:14:11 +00:00
|
|
|
} else if(opt.equals("10")) {
|
2016-04-22 09:40:16 +00:00
|
|
|
settings.put(CompilerOptions.OPTION_TargetPlatform,
|
2018-08-16 13:14:11 +00:00
|
|
|
- CompilerOptions.VERSION_10);
|
2019-04-22 19:57:57 +00:00
|
|
|
+ "10"); // CompilerOptions.VERSION_10
|
2016-04-22 09:40:16 +00:00
|
|
|
settings.put(CompilerOptions.OPTION_Compliance,
|
2018-08-16 13:14:11 +00:00
|
|
|
- CompilerOptions.VERSION_10);
|
2019-04-22 19:57:57 +00:00
|
|
|
+ "10"); // CompilerOptions.VERSION_10
|
|
|
|
} else if(opt.equals("11")) {
|
2014-05-20 11:53:20 +00:00
|
|
|
settings.put(CompilerOptions.OPTION_TargetPlatform,
|
2019-04-22 19:57:57 +00:00
|
|
|
- CompilerOptions.VERSION_11);
|
|
|
|
+ "11"); // CompilerOptions.VERSION_11
|
|
|
|
settings.put(CompilerOptions.OPTION_Compliance,
|
|
|
|
- CompilerOptions.VERSION_11);
|
|
|
|
+ "11"); // CompilerOptions.VERSION_11
|
|
|
|
} else if(opt.equals("12")) {
|
|
|
|
// Constant not available in latest ECJ version shipped with
|
|
|
|
// Tomcat. May be supported in a snapshot build.
|