On ecj and @Override annotations for interface methods
Andrew Haley
aph at redhat.com
Thu Sep 18 02:32:36 PDT 2008
Andrew John Hughes wrote:
> On 10:02 Wed 17 Sep , Andrew Haley wrote:
>> C. K. Jester-Young wrote:
>>
>>> There is, in fact, a way to do this, at least for the version of ecj
>>> distributed with Ubuntu 8.04. It just requires supplying the "-1.6"
>>> command-line option in javac.in.
>> Seems reasonable.
>>
>>> Otherwise, I'm happy to make the -1.6 option apply only to NIO2 builds,
>>> and have configure test for -1.6 support when --with-project=nio2.
>> Why not simply add a configure test for "-1.6" and if it succeeds use
>> "-1.6" everywhere?
>
> I was about to suggest the same thing. However, I don't see the immediate
> advantage as we'd still have to patch the @Override instances for non-1.6
> ecjs. Override is a source-level annotation so it doesn't survive to bytecode
> anyway.
That makes good sense to me. However, how common are these ecjs that
don't do Java 1.6? I don't have the information.
Andrew.
More information about the distro-pkg-dev
mailing list