public inbox for gentoo-java@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Petteri Räty" <betelgeuse@gentoo.org>
To: David Herron <David.Herron@Sun.COM>
Cc: gentoo-java@lists.gentoo.org
Subject: Re: [gentoo-java] Cross compiling for older platform versions
Date: Thu, 28 Feb 2008 04:03:13 +0200	[thread overview]
Message-ID: <47C61661.5050303@gentoo.org> (raw)
In-Reply-To: <47C5EB11.3080301@sun.com>

[-- Attachment #1: Type: text/plain, Size: 1150 bytes --]

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




[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

  parent reply	other threads:[~2008-02-28  2:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-27 22:58 [gentoo-java] Cross compiling for older platform versions David Herron
2008-02-27 23:09 ` David Herron
2008-02-28  2:03 ` Petteri Räty [this message]
     [not found]   ` <b944a51b0802272359y259c8e62p8a7457da0cb13a97@mail.gmail.com>
2008-02-28 12:06     ` Petteri Räty
2008-02-29  7:51   ` Vlastimil Babka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47C61661.5050303@gentoo.org \
    --to=betelgeuse@gentoo.org \
    --cc=David.Herron@Sun.COM \
    --cc=gentoo-java@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox