Gentoo Archives: gentoo-java

From: "Sven Köhler" <skoehler@×××.de>
To: Bernhard Frauendienst <gentoo.java@×××××××××××××.de>
Cc: gentoo-java@l.g.o
Subject: Re: [gentoo-java] Re: JDK used for compiling
Date: Sun, 18 Nov 2007 23:51:11
Message-Id: 4740CFB9.7060004@upb.de
In Reply to: Re: [gentoo-java] Re: JDK used for compiling by Bernhard Frauendienst
1 > Such packages will then be marked with RDEPEND=">=virtual/jre-1.5" and
2 > emerging them will pull in a JRE that supports the needed features (if
3 > not already installed). I don't see a problem there.
4
5 No, that's not right either.
6
7 The code in the example compiles with BOTH - JDK 1.4 and JDK 1.5.
8
9 But the generated bytecode is different:
10
11 - compiled with JDK 1.5, the method StringBuffer.append(CharSequence) is
12 called. (No matter, whether "-target 1.4" has been used, or not)
13 - compiled with JDK 1.4, the method StringBuffer.append(Object) is called.

Attachments

File name MIME type
signature.asc application/pgp-signature