tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Tomcat and Sun/Oracle Java 7
Date Mon, 04 Feb 2013 18:40:22 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Chuck,

On 2/4/13 9:55 AM, Caldarale, Charles R wrote:
>> From: André Warnier [mailto:aw@ice-sa.com] - the classes of a
>> servlet that has been compiled under a Sun/Oracle Java 1.7 JDK
>> will run fine under Tomcat 6 and a Sun/Oracle Java 1.6 JVM
> 
> No.

It's a "maybe". If you use "-target 1.6" and you make sure not to use
any APIs that are Java 1.7+ (not sure if the compiler actually checks
when you use -target 1.6), then the above should be possible.
Otherwise, you will have problems loading the class (lack of .class
file version support) or running the code (NoSuchMethodError, etc.).

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEAREIAAYFAlEQAJYACgkQ9CaO5/Lv0PD/NACeN3Cj+QSu+qDOePzn8kVtihSb
OYwAn3NhrhzcYnpkJb6IymPlbYk35tjj
=NuUe
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message