If I move the interface into the Enum's package, the GWT compiler appears happy.
Opened an issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=5520 Thanks! Mike On Oct 30, 2:59 am, Didier DURAND <[email protected]> wrote: > Hi Mike, > > Probably an issue in the location of the various classes: can you tell > us the packages that they belong to ? > > didier > > On Oct 29, 11:23 pm, Mike <[email protected]> wrote: > > > I tried changing the line to: > > > public enum Color implements IsConfigurable, Serializable > > > and I'm still getting the same compile error. > > > Thanks! > > Mike > > > On Oct 29, 3:57 pm, Patrick Tucker <[email protected]> wrote: > > > > The enum itself can implement Serializable > > > > On Oct 29, 2:41 pm, Mike <[email protected]> wrote: > > > > > How can I make an enum that implements a marker interface serializable > > > > in GWT 2.0? > > > > > The below example: > > > > > public interface IsConfigurable > > > > { > > > > > } > > > > > public enum Color implements IsConfigurable > > > > { > > > > BLUE, > > > > RED; > > > > > } > > > > > Results in the following: > > > > [java] Compiling module com.colors > > > > [java] Validating newly compiled units > > > > [java] [ERROR] Errors in 'file:...Color.java' > > > > [java] [ERROR] Line 7: The import ...IsConfigurable > > > > cannot be resolved > > > > [java] [ERROR] Line 12: IsConfigurable cannot be > > > > resolved to a type > > > > [java] Compiling 6 permutations > > > > ... > > > > > Thanks! > > > > Mike -- 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.
