From: kkolinko Date: Wed, 17 Jun 2009 19:58:30 +0000 (+0000) Subject: Disable the code that detects the value for compilerSourceVM, compilerTargetVM options, X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=3905e5fb931052a2621c01ecb31b9f3074bef009;p=tomcat7.0 Disable the code that detects the value for compilerSourceVM, compilerTargetVM options, because we know that this version of Tomcat cannot run on JDK 1.4. Update the doc. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@785768 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/jasper/EmbeddedServletOptions.java b/java/org/apache/jasper/EmbeddedServletOptions.java index 862341751..d0acf40b7 100644 --- a/java/org/apache/jasper/EmbeddedServletOptions.java +++ b/java/org/apache/jasper/EmbeddedServletOptions.java @@ -378,15 +378,16 @@ public final class EmbeddedServletOptions implements Options { ServletContext context) { // JVM version numbers - try { - if (Float.parseFloat(System.getProperty("java.specification.version")) > 1.4) { - compilerSourceVM = compilerTargetVM = "1.5"; - } else { - compilerSourceVM = compilerTargetVM = "1.4"; - } - } catch (NumberFormatException e) { - // Ignore - } + // - not needed, because this version of Tomcat requires at least JDK 1.5 + // try { + // if (Float.parseFloat(System.getProperty("java.specification.version")) > 1.4) { + // compilerSourceVM = compilerTargetVM = "1.5"; + // } else { + // compilerSourceVM = compilerTargetVM = "1.4"; + // } + // } catch (NumberFormatException e) { + // // Ignore + // } Enumeration enumeration=config.getInitParameterNames(); while( enumeration.hasMoreElements() ) { diff --git a/webapps/docs/jasper-howto.xml b/webapps/docs/jasper-howto.xml index 9c0cc19b2..ec39da103 100644 --- a/webapps/docs/jasper-howto.xml +++ b/webapps/docs/jasper-howto.xml @@ -107,10 +107,10 @@ then the default Eclipse JDT Java compiler will be used instead of using Ant. No default value.
  • compilerSourceVM - What JDK version are the source files -compatible with? (Default JDK 1.4)
  • +compatible with? (Default value: 1.5)
  • compilerTargetVM - What JDK version are the generated files -compatible with? (Default JDK 1.4)
  • +compatible with? (Default value: 1.5)
  • development - Is Jasper used in development mode? If true, the frequency at which JSPs are checked for modification may be specified via