On ecj and @Override annotations for interface methods
Andrew John Hughes
gnu_andrew at member.fsf.org
Thu Sep 18 04:39:14 PDT 2008
2008/9/18 C. K. Jester-Young <cky944 at gmail.com>:
> On Thu, Sep 18, 2008 at 01:33:27PM +0200, Mark Wielaard wrote:
>> There is no -source 1.6 option, there were no language changes between
>> 1.5 and 1.6, only target changes. (Although -source 1.5 will trigger
>> -target 1.5, which is why it makes a difference compared to not giving
>> any -source option.)
>
> There is, for the ecj that comes with Ubuntu 8.04 ("Eclipse Java
> Compiler v_774_R33x, 3.3.1"). It makes a difference between whether
> @Override annotations are accepted for interface methods; in fact,
> that's why I started this thread in the first place. :-)
>
> Cheers,
> ---Chris K.
>
That's what I thought, but if it can't be used with a target of 1.5, then
we need to just strip these things in javac.in as you suggested.
--
Andrew :-)
Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net
PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint: F8EF F1EA 401E 2E60 15FA 7927 142C 2591 94EF D9D8
More information about the distro-pkg-dev
mailing list