Adam,

On Sun, 2009-08-16 at 08:30 +1000, Adam Murdoch wrote:
> It would be much better to keep the covariant return types. Do you know 
> which versions of Java work, and which don't?

I agree that covariant returns should be allowed.  They have been in
since Java 5 and that is the floor for Gradle.

> This is quite odd. I use java 5 to develop Gradle, and these changes 
> work fine for me. The CI builds use a mix of 5 and 6, and they work fine 
> too.

The problem appears to be with OpenJDK as shipped with Ubuntu 9.04 --
both 32-bit and 64-bit versions.

It seems this version of OpenJDK is fubar wrt covariant returns.

-- 
Russel.
=============================================================================
Dr Russel Winder      Partner
                                            xmpp: [email protected]
Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,   f: +44 8700 516 084   voip: sip:[email protected]
London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to