The exact meaning of @Override is different in Java 6 than it was in Java 5 (in Java 5 it means the superCLASS must have the method, not the super type - in Java 6 types, like an interface in this case, are also allowed - http://blogs.sun.com/ahe/entry/override_snafu).
If you are using Java 5 - remove the annotation. Alternatively, use Java 6 and it should work just fine as is. The tutorial instructions there say "Java 1.5 or higher," but that is really incorrect, they are using Java 1.6 semantics. On Nov 7, 9:59 pm, hezjing <[EMAIL PROTECTED]> wrote: > Hi > > The following example is described > inhttp://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=goog... > > public class StockPriceServiceImpl extends RemoteServiceServlet implements > StockPriceService { > > @Override > public StockPrice[] getPrices(String[] symbols) { > // TODO Auto-generated method stub > return null; > } > > } > > The @Override causes compile error "method does not override a method from > its superclass" > > -- > > Hez --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---