-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Chuck,

On 2/4/13 9:55 AM, Caldarale, Charles R wrote:
>> From: André Warnier [mailto:a...@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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to