You're not following the coding style guidlines being published
by SUN, so it's hard to say. I assume that "otherClass" is not
a static inner class of class "index", but a member of type e.g.
OtherClass. So because the actual class of that member might
change (e.g. a derived class of OtherClass), the value of JOE
can change (that's the reasion why every IDE with some minimal
kind of self-respect warns you if you try that).
So you should do the following things:
- Use OtherClass.JOE instead of index.otherClass.JOE
- Go to comp.lang.java.help/programmer if you need further
help concerning the Java Programming Language rather than GWT.
Regards, Lothar