On ecj and @Override annotations for interface methods
C. K. Jester-Young
cky944 at gmail.com
Wed Sep 17 01:41:36 PDT 2008
After a discussion with Alan Bateman (NIO2 lead maintainer) about the
unwieldliness of having to remove @Override annotations for interface
methods, he suggested that I look into the possibility of making ecj
support such uses; more and more code in jdk7 are using it, not just
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.
I'm very keen to see how many of the ecj versions, that IcedTea needs
to support, would allow that option to be successfully used. If it
works generally (I've attached a trivial file people can test with,
if they wish to), I'd propose editing javac.in to use -1.6 instead of
-1.5 as it currently does (if there aren't other objects to the idea,
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 94 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20080917/bb6c6df6/OverrideTest.java
More information about the distro-pkg-dev