> -----Original Message-----
> From: John Gill [mailto:[EMAIL PROTECTED]
> Sent: mardi 29 mai 2007 15:16
> To: [email protected]
> Subject: Re: jdk version required (was Re: Extending IvyBuildList)
> 
> Well for one, it is "only" an ant plugin, so it's not like it is forcing
> everyone to write their programs using generics, but it would mean they
> would need java5 to run ANT/IVY. I think all they have to do in their ant
> builds is specify the source and target attributes for the javac task to
> specify what they are building. So if they want java 1.4 they can use
> <javac source="1.4" target="1.4"... />
> 

That's unformtunately not so simple.  When you use <javac source="1.4"
target="1.4"... />, you are indeed compile sources that follow 1.4 syntax,
and you produce .class in the 1.4 'format'.  However, you code can still use
jre methods that only exists since 1.5.  The Sun JDK compiler will not check
if the method exists in 1.4.  And you will endup with runtime error.

Gilles

Reply via email to