Author: markt Date: Wed Jun 3 21:46:57 2009 New Revision: 781594 URL: http://svn.apache.org/viewvc?rev=781594&view=rev Log: Reported as part of https://issues.apache.org/bugzilla/show_bug.cgi?id=37515 Add options for Java 1.6 and 1.7
Modified: tomcat/container/tc5.5.x/webapps/docs/changelog.xml tomcat/jasper/tc5.5.x/src/share/org/apache/jasper/compiler/JDTCompiler.java Modified: tomcat/container/tc5.5.x/webapps/docs/changelog.xml URL: http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/webapps/docs/changelog.xml?rev=781594&r1=781593&r2=781594&view=diff ============================================================================== --- tomcat/container/tc5.5.x/webapps/docs/changelog.xml (original) +++ tomcat/container/tc5.5.x/webapps/docs/changelog.xml Wed Jun 3 21:46:57 2009 @@ -117,6 +117,10 @@ <subsection name="Jasper"> <changelog> <fix> + <bug>37515</bug>: Add options for Java 1.6 and 1.7 to the JDT compiler. + (markt) + </fix> + <fix> <bug>45666</bug>: Fix infinite loop on include. Patch provided by Tom Wadzinski. (markt) </fix> Modified: tomcat/jasper/tc5.5.x/src/share/org/apache/jasper/compiler/JDTCompiler.java URL: http://svn.apache.org/viewvc/tomcat/jasper/tc5.5.x/src/share/org/apache/jasper/compiler/JDTCompiler.java?rev=781594&r1=781593&r2=781594&view=diff ============================================================================== --- tomcat/jasper/tc5.5.x/src/share/org/apache/jasper/compiler/JDTCompiler.java (original) +++ tomcat/jasper/tc5.5.x/src/share/org/apache/jasper/compiler/JDTCompiler.java Wed Jun 3 21:46:57 2009 @@ -301,6 +301,12 @@ } else if(opt.equals("1.5")) { settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_5); + } else if(opt.equals("1.6")) { + settings.put(CompilerOptions.OPTION_Source, + CompilerOptions.VERSION_1_6); + } else if(opt.equals("1.7")) { + settings.put(CompilerOptions.OPTION_Source, + CompilerOptions.VERSION_1_7); } else { log.warn("Unknown source VM " + opt + " ignored."); settings.put(CompilerOptions.OPTION_Source, @@ -332,6 +338,16 @@ CompilerOptions.VERSION_1_5); settings.put(CompilerOptions.OPTION_Compliance, CompilerOptions.VERSION_1_5); + } else if(opt.equals("1.6")) { + settings.put(CompilerOptions.OPTION_TargetPlatform, + CompilerOptions.VERSION_1_6); + settings.put(CompilerOptions.OPTION_Compliance, + CompilerOptions.VERSION_1_6); + } else if(opt.equals("1.7")) { + settings.put(CompilerOptions.OPTION_TargetPlatform, + CompilerOptions.VERSION_1_7); + settings.put(CompilerOptions.OPTION_Compliance, + CompilerOptions.VERSION_1_7); } else { log.warn("Unknown target VM " + opt + " ignored."); settings.put(CompilerOptions.OPTION_TargetPlatform, --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org