2017-12-02 23:45:46 +00:00
|
|
|
Index: java/org/apache/jasper/compiler/JDTCompiler.java
|
|
|
|
IDEA additional info:
|
|
|
|
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
|
|
|
<+>UTF-8
|
|
|
|
===================================================================
|
2018-08-16 13:14:11 +00:00
|
|
|
--- java/org/apache/jasper/compiler/JDTCompiler.java (revision 6bbf738a0e56d1793022b15e9aca9b690699216b)
|
|
|
|
+++ java/org/apache/jasper/compiler/JDTCompiler.java (date 1534261527000)
|
|
|
|
@@ -312,15 +312,16 @@
|
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);
|
|
|
|
+ "9");
|
|
|
|
} else if(opt.equals("10")) {
|
|
|
|
settings.put(CompilerOptions.OPTION_Source,
|
|
|
|
- CompilerOptions.VERSION_10);
|
|
|
|
+ "10");
|
|
|
|
+
|
2014-05-20 11:53:20 +00:00
|
|
|
} else {
|
|
|
|
log.warn("Unknown source VM " + opt + " ignored.");
|
|
|
|
settings.put(CompilerOptions.OPTION_Source,
|
2018-08-16 13:14:11 +00:00
|
|
|
@@ -366,19 +367,19 @@
|
2014-05-20 11:53:20 +00:00
|
|
|
settings.put(CompilerOptions.OPTION_TargetPlatform,
|
2018-08-16 13:14:11 +00:00
|
|
|
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);
|
|
|
|
+ "9"); // CompilerOptions.VERSION_1_9
|
|
|
|
settings.put(CompilerOptions.OPTION_Compliance,
|
|
|
|
- CompilerOptions.VERSION_9);
|
|
|
|
+ "9"); // CompilerOptions.VERSION_1_9
|
|
|
|
} 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);
|
|
|
|
+ "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);
|
|
|
|
+ "10");
|
2014-05-20 11:53:20 +00:00
|
|
|
} else {
|
|
|
|
log.warn("Unknown target VM " + opt + " ignored.");
|
|
|
|
settings.put(CompilerOptions.OPTION_TargetPlatform,
|