1 |
David Herron kirjoitti: |
2 |
> Hi, I talked with Petterati at FOSDEM last weekend and he explained to |
3 |
> me (again) the issue y'all have. I just noticed that Joe Darcy has |
4 |
> posted a blog entry which seems to be really close to what you want. |
5 |
> Namely that even if you specify "-source 1.4" the platform library is |
6 |
> gonna change from release-release. Please take a look. |
7 |
> |
8 |
> http://blogs.sun.com/darcy/entry/how_to_cross_compile_for |
9 |
> |
10 |
> |
11 |
|
12 |
Yeah we talked a while ago on #gentoo-java or was it on this mailing |
13 |
list that our approach to backwards compatibility is not enough to be |
14 |
able to always run things with 1.4 but using -source is enough to get us |
15 |
through the following situation: |
16 |
|
17 |
-appfoo depends on libfoo |
18 |
-libb depends on liba but only compiles against 1.4 class library |
19 |
-liba can be emerged with 1.6 |
20 |
|
21 |
So what I am trying to say here is that using -source 1.4 enables us to |
22 |
compile libb (if liba wasn't compiled to 1.4 bytecode, javac would fail |
23 |
with class version issues) but people should usually be running things |
24 |
with the latest stable JDK/JRE (this is what happens by default). |
25 |
|
26 |
Regards, |
27 |
Petteri |