- Add missing patch for 1.5 compatibility.
authorremm <remm@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 13 Apr 2006 13:56:50 +0000 (13:56 +0000)
committerremm <remm@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 13 Apr 2006 13:56:50 +0000 (13:56 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@393808 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/jasper/compiler/JDTCompiler.java

index 8ce328b..e93ee91 100644 (file)
@@ -320,6 +320,8 @@ public class JDTCompiler extends org.apache.jasper.compiler.Compiler {
             } else if(opt.equals("1.5")) {\r
                 settings.put(CompilerOptions.OPTION_TargetPlatform,\r
                              CompilerOptions.VERSION_1_5);\r
+                settings.put(CompilerOptions.OPTION_Compliance,\r
+                        CompilerOptions.VERSION_1_5);\r
             } else {\r
                 log.warn("Unknown target VM " + opt + " ignored.");\r
                 settings.put(CompilerOptions.OPTION_TargetPlatform,\r
@@ -329,6 +331,8 @@ public class JDTCompiler extends org.apache.jasper.compiler.Compiler {
             // Default to 1.5\r
             settings.put(CompilerOptions.OPTION_TargetPlatform,\r
                     CompilerOptions.VERSION_1_5);\r
+            settings.put(CompilerOptions.OPTION_Compliance,\r
+                    CompilerOptions.VERSION_1_5);\r
         }\r
 \r
         final IProblemFactory problemFactory = \r