Simple covariant return type
Marcus Better
marcus at better.se
Thu Jun 25 08:01:19 UTC 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Mathieu Malaterre wrote:
> I must be doing something wrong, but I do not see what is wrong with
> the following piece of code (*). Is there a restriction when using ecj
> as the java compiler ?
The manpage for ecj indicates that it is building with source level 1.4 by
default. Covariant return types are a Java 5 feature. Try the -1.5 switch.
Cheers,
Marcus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkpDLtAACgkQXjXn6TzcAQm8YgCg8ZcKdHYZJeKiYmP3FoY3T6iw
JUgAn0V0id3NTCaIUuqrfxOiU4QKW+JR
=GERG
-----END PGP SIGNATURE-----
More information about the pkg-java-maintainers
mailing list