On 29/05/2014 04:26, Andrew Carr wrote: > From what I have read building Tomcat 7 has to be done with JDK 6 and the > option by the devs was to fix JDK 7 building in Tomcat 8 and tell people to > compile Tomcat 7 with JDK 6, running it with Java 7. Is this true?
No. There are many reasons why Tomcat 7 is (mostly [1]) built with Java 6. The primary one is that the Servlet 3.0 specification requires that Tomcat 7 runs on Java 6 and the easiest way to make sure this is the case is to build and test with Java 6. A secondary issue is the the package renamed Commons DBCP has to be built with Java 6 because of the version of JDBC it implements. Sun (and now Oracle) have a nasty habit of extending the JDBC interfaces in ways that are not fully backwards compatible (this should finally end with Java 8 if they use the new language features available). This means DBCP does not compile with Java 7. None of these reasons absolutely prevent building with Java 7. There are ways around all of them. However, to do so would add complexity and increase the chances of failures when running on Java 6. Therefore there has been no interest / requirement to move to building with Java 7. > Are there plans to fix TC 7 to compile with JDK7? No. > Should there be? No. > Is this something of worthwhile pursuit? No. Mark [1] WebSocket has to be built with Java 7 and this is handled by the build script --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org