On ecj and @Override annotations for interface methods
C. K. Jester-Young
cky944 at gmail.com
Wed Sep 17 02:21:32 PDT 2008
On Wed, Sep 17, 2008 at 10:02:23AM +0100, Andrew Haley wrote:
> Why not simply add a configure test for "-1.6" and if it succeeds use
> "-1.6" everywhere?
That's actually a good idea. :-) In that case, if the 1.6 test succeeds,
then Makefile should specify running with "-source 1.6" too (again, if
there are no objections---yes, I noticed that I mistyped that word in my
last message ---to the idea). Which makes me think, there should be a
new variable, maybe SOURCE_VERSION, which is used both in javac.in and
Makefile.am.
I've come to discover that this doesn't solve all cases of ecj choking
on @Override (specifically, interfaces are not considered to subclass
java.lang.Object, and thus any interfaces that override the equals and
hashCode methods, say, cannot have @Override annotations for them). But
it seems to correct enough cases to significantly diminish any @Override
removal patches that I have to come up with. :-)
Thanks,
---Chris K.
More information about the distro-pkg-dev
mailing list