On ecj and @Override annotations for interface methods

Mark Wielaard mark at klomp.org
Thu Sep 18 04:41:24 PDT 2008


On Thu, 2008-09-18 at 23:37 +1200, C. K. Jester-Young wrote:
> 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. :-)

O, that is super confusing, since openjdk javac explicitly says -source
1.6 is not a valid option. hmmm.

Cheers,

Mark




More information about the distro-pkg-dev mailing list