Re: Selecting a javac which supports at least Java5
On Thu, Mar 15, 2007 at 01:55:35PM +0100, Benjamin Mesing wrote:
> [Please CC, I am not subscribed]
>
> >>> How do I ensure, that the correct compiler is used.
> >>> Is the only way, to explicitly set the java
> >>> compiler path (i.e. /usr/lib/jvm/java-1.5.0/bin/javac
>
> >> Yes, that is the only correct way. We must be sure that the package
> >> builds with identical results on different systems,
>
> > It's not so much that we need identical results, but the result must
> > use the same ABI, which isn't true across major Java versions.
>
> Couldn't this be achieved using the "-target 1.5" switch for the javac
> compiler (even when using Java 1.6)?
Who says the results are the same? Who says the results are the same
with different JDK 5 implementations? I agree with Marcus that its much
better to have one explicit Build-Dependency than a large collection and
slightly different results.
Cheers,
Michael
--
.''`. | Michael Koch <konqueror@gmx.de>
: :' : | Free Java Developer <http://www.classpath.org>
`. `' |
`- | 1024D/BAC5 4B28 D436 95E6 F2E0 BD11 5923 A008 2763 483B
Reply to: