dev@fi.java.net

Re: Compilation for JDK 1.4.2

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Fri, 18 Feb 2005 09:18:03 -0800

Paul Sandoz wrote:
> Hi,
>
> The builds are being automatically generated using JDK 5.0.
>
> The javac ant task uses 'source="1.4"'. I originally thought that this
> would generate 1.4 compatible byte code. After re-reading the javac
> manual it appears this is not the case.

You need to use -source=1.4 as well as -target=1.4

> Although cross-compiling is possible it is probably easier to use the
> 1.4.2 JDK to be sure everything is correct.

I agree.

> Kohuske, how can i condigure the hudson build to use 1.4.2?

Should be fixed now. I just started a new build.


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com