Btw the compile error is because type can't be static and depend on a compile time generic arguement. When the statics are innitilaized H is not defined yet.
On Jan 25, 10:34 am, Ice13ill <andrei.fifi...@gmail.com> wrote: > Hello, i'm trying to develop a custom application event system using > my own events and a base event (inherited by the other event types) > > Here is the code of the base event class: > > public class EBaseEvent<H extends EventHandler> extends GwtEvent<H>{ > > public static GwtEvent.Type<H> TYPE = new GwtEvent.Type<H>(); > > @Override > public GwtEvent.Type<H> getAssociatedType() { > return TYPE; > } > > } > > The first pb is a compilation problem: i get the message: > > "Cannot make a static reference to a non-static type H" > I don't understand, why is H a static type ? and how can i resolve the > pb ? (i'm not very good working with parametrized types) > > The second pb is that i'm not sure if this is a good/correct approach. > Any ideas ? -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.