Simple covariant return type
marcus at better.se
Thu Jun 25 10:28:35 UTC 2009
-----BEGIN PGP SIGNED MESSAGE-----
Onkar Shinde wrote:
>>> So my question: is it ok for package maintainer to use javac -source
>>> 1.5 to compile code
>> It's certainly OK, even necessary in this case.
> Please make sure that the package dependencies reflect that the
> package is built with source version 1.5. This can be done by
> specifying the dependency 'java5-runtime'.
I don't think this is needed if covariant return types are the only Java
5 feature used as this is only a Java language feature, but I might be
wrong here. You can try by compiling with -target 1.4.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the pkg-java-maintainers