error @Override annotation

400 views
Skip to first unread message

Ngọc Minh

unread,
Jul 1, 2008, 8:08:37 AM7/1/08
to Google Web Toolkit
When I implement a interface, Eclipse automatically add @Override
before each implemented method. When build in Eclipse, it's OK.
However, when run in Hosted mode, the error: "The method xxx of type
yyy must override a superclass method" occurred. When I remove
@Override annotations, everything's fine again. Is it a bug?

I'm running GWT 1.5.0 (RC).

dolc...@gmail.com

unread,
Jul 1, 2008, 3:17:21 PM7/1/08
to Google Web Toolkit
No. I believe there is a setting in eclipse to not add the @Override
annotation.

krishna

unread,
Jul 4, 2008, 1:50:37 AM7/4/08
to Google Web Toolkit

This is because of GWT 1.5 is not compatible with Java 1.6. See the
thread below.

http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/8d416afce6c654bb/a9b3a37b34c15097?lnk=gst&q=%40override+1.6#a9b3a37b34c15097

Regards,
Krishna

Neera

unread,
Jul 11, 2008, 8:16:33 PM7/11/08
to Google Web Toolkit
Go to 'Project -> properties -> java Compiler' , and set Compiler
Compliance level to 6.0

On Jul 3, 10:50 pm, krishna <krishnakum...@gmail.com> wrote:
> This is because of GWT 1.5 is not compatible with Java 1.6. See the
> thread below.
>
> http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
>
> Regards,
> Krishna
>
> On Jul 2, 12:17 am, "dolcra...@gmail.com" <dolcra...@gmail.com> wrote:
>
> > No. I believe there is a setting in eclipse to not add the @Override
> >annotation.
>
> > On Jul 1, 8:08 am, Ngọc Minh <cume...@gmail.com> wrote:
>
> > > When I implement a interface, Eclipse automatically add @Override
> > > before each implemented method. When build in Eclipse, it's OK.
> > > However, when run in Hosted mode, theerror: "The method xxx of type
> > > yyy mustoverridea superclass method" occurred. When I remove
> > > @Overrideannotations, everything's fine again. Is it a bug?
Reply all
Reply to author
Forward
0 new messages