In the current state, tomcat7 and tomcat8 in Xenial and newer are both built with Java 8, since it is the default JRE. However, as this bug and others point out Java 7 support does not always work because of this. The example in this bug is that the ConcurrentHashMap KeySetView method is available in Java 8, but is not available in Java 7.
The solution used by the Debian maintainers [1] was to drop support for Java versions less than the version compiled with [2]. This would be mean that both tomcat7 and tomcat8 would use Java 8 or newer. On one hand this makes sense that the default Java version should be used, however as pointed out the Java documents claim that support should be possible with older versions. If this approach were to be adopted it would require an SRU for Tomcat 7 and Tomcat 8 to xenial, yakkety, and zesty. [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=848612 [2] https://anonscm.debian.org/cgit/pkg-java/tomcat8.git/commit/?id=aecf5a6 ** Bug watch added: Debian Bug tracker #848612 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=848612 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1625043 Title: tomcat7 package not compliant with tomcat specification To manage notifications about this bug go to: https://bugs.launchpad.net/tomcat7/+bug/1625043/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
