On 9 nov, 20:47, Bogdan Sulima <[email protected]> wrote: > Hello all, > > code snippet causes strange error when running code in development > mode > > SimpleEventBus eventBus = new SimpleEventBus(); > > Caused by: java.lang.Error: Unresolved compilation problems: > The type EventBus cannot be the superclass of SimpleEventBus; a > superclass must be a class > The method addHandler(GwtEvent.Type, H) of type SimpleEventBus must > override or implement a supertype method > The method addHandlerToSource(GwtEvent.Type, Object, H) of type > SimpleEventBus must override or implement a supertype method > The method fireEvent(GwtEvent) of type SimpleEventBus must override > or implement a supertype method > The method fireEventFromSource(GwtEvent, Object) of type > SimpleEventBus must override or implement a supertype method > > at com.google.gwt.event.shared.SimpleEventBus.(SimpleEventBus.java: > 33) > > I am using GWT 2.1 for eclipse 3.4 (IBM Rational Application Developer > 7.5) on Vista. > > Suggestion are welcome!
You probably have a 2.1 milestone gwt-user JAR in your classpath. EventBus used to be an interface in milestones (M1 and M2) and SimpleEventBus didn't exist (SimpleEventBus would be taken from your 2.1.0 JAR, and EventBus from the 2.1-Mx JAR, and SimpleEventBus is declared as "extends EventBus", which is not possible if EventBus is an interface) -- 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.
