Re: Cross compiling for older platform versions

Petteri Räty <[email protected]> Thu, 28 Feb 2008 04:03:13 +0200
Newsgroups gmane.linux.gentoo.java
Message-ID <[email protected]>
David Herron kirjoitti:
> Hi, I talked with Petterati at FOSDEM last weekend and he explained to 
> me (again) the issue y'all have.  I just noticed that Joe Darcy has 
> posted a blog entry which seems to be really close to what you want.  
> Namely that even if you specify "-source 1.4" the platform library is 
> gonna change from release-release.  Please take a look.
> 
> http://blogs.sun.com/darcy/entry/how_to_cross_compile_for
> 
> 

Yeah we talked a while ago on #gentoo-java or was it on this mailing 
list that our approach to backwards compatibility is not enough to be 
able to always run things with 1.4 but using -source is enough to get us 
through the following situation:

-appfoo depends on libfoo
-libb depends on liba but only compiles against 1.4 class library
-liba can be emerged with 1.6

So what I am trying to say here is that using -source 1.4 enables us to 
compile libb (if liba wasn't compiled to 1.4 bytecode, javac would fail 
with class version issues) but people should usually be running things 
with the latest stable JDK/JRE (this is what happens by default).

Regards,
Petteri
signature.asc (application/pgp-signature, 252 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHxhZhcxLzpIGCsLQRAu6JAJ0UhSv2b6YArdI0sFJ3jK52jFSYBACggKL9
EiVa2EMPm1KdNIeJwCT8MXQ=
=sFhQ
-----END PGP SIGNATURE-----