You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by pe...@apache.org on 2006/01/26 07:58:04 UTC
svn commit: r372466 -
/tomcat/jasper/tc5.5.x/jasper2/src/share/org/apache/jasper/compiler/JDTCompiler.java
Author: pero
Date: Wed Jan 25 22:58:01 2006
New Revision: 372466
URL: http://svn.apache.org/viewcvs?rev=372466&view=rev
Log:
Set correct JDT Compiler option to java 1.5 compliance s. Bug 38389
Modified:
tomcat/jasper/tc5.5.x/jasper2/src/share/org/apache/jasper/compiler/JDTCompiler.java
Modified: tomcat/jasper/tc5.5.x/jasper2/src/share/org/apache/jasper/compiler/JDTCompiler.java
URL: http://svn.apache.org/viewcvs/tomcat/jasper/tc5.5.x/jasper2/src/share/org/apache/jasper/compiler/JDTCompiler.java?rev=372466&r1=372465&r2=372466&view=diff
==============================================================================
--- tomcat/jasper/tc5.5.x/jasper2/src/share/org/apache/jasper/compiler/JDTCompiler.java (original)
+++ tomcat/jasper/tc5.5.x/jasper2/src/share/org/apache/jasper/compiler/JDTCompiler.java Wed Jan 25 22:58:01 2006
@@ -320,6 +320,8 @@
} 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,
@@ -328,6 +330,8 @@
} else {
// Default to 1.5
settings.put(CompilerOptions.OPTION_TargetPlatform,
+ CompilerOptions.VERSION_1_5);
+ settings.put(CompilerOptions.OPTION_Compliance,
CompilerOptions.VERSION_1_5);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org