From: remm Date: Thu, 13 Apr 2006 13:56:50 +0000 (+0000) Subject: - Add missing patch for 1.5 compatibility. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=ac4d9e4938ca24b301337eda447b7d76b685db25;p=tomcat7.0 - Add missing patch for 1.5 compatibility. git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@393808 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/jasper/compiler/JDTCompiler.java b/java/org/apache/jasper/compiler/JDTCompiler.java index 8ce328b0a..e93ee919f 100644 --- a/java/org/apache/jasper/compiler/JDTCompiler.java +++ b/java/org/apache/jasper/compiler/JDTCompiler.java @@ -320,6 +320,8 @@ public class JDTCompiler extends org.apache.jasper.compiler.Compiler { } else if(opt.equals("1.5")) { settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_5); + settings.put(CompilerOptions.OPTION_Compliance, + CompilerOptions.VERSION_1_5); } else { log.warn("Unknown target VM " + opt + " ignored."); settings.put(CompilerOptions.OPTION_TargetPlatform, @@ -329,6 +331,8 @@ public class JDTCompiler extends org.apache.jasper.compiler.Compiler { // Default to 1.5 settings.put(CompilerOptions.OPTION_TargetPlatform, CompilerOptions.VERSION_1_5); + settings.put(CompilerOptions.OPTION_Compliance, + CompilerOptions.VERSION_1_5); } final IProblemFactory problemFactory =