On ecj and @Override annotations for interface methods
Andrew John Hughes
gnu_andrew at member.fsf.org
Wed Sep 17 16:51:55 PDT 2008
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.
> Andrew.
--
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