The GWT Compiler doesn't like to have @Override on an interface method, if the
method definition
comes from a class it's happy, but if the direct parent declaration is in an
interface it won't compile.
[EMAIL PROTECTED] wrote:
> I get the error message in the development shell:
>
> The method onClick(Widget) of type new ClickListener(){} must
> override a superclass method
>
> When I do
>
> addClickListener(new ClickListener() {
>
> @Override
> public void onClick(Widget sender) { ...
>
> but all is fine if I have
>
> addClickListener(new ClickListener() {
>
> public void onClick(Widget sender) { ...
>
>
> Why is it wrong to include "@Override"? Eclipse quick fix puts it
> there for me.
>
> Best,
>
> -ken
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---