On Tuesday, December 21, 2010 8:27:45 PM UTC+1, zixzigma wrote: > > are you suggesting we need to compile our custom annotations before > compiling other classes that use them ? >
I mean you have to "javac" classes that are *referenced* from annotations (in this case, the PlaceTokenizer classes referenced from @WithTokenizers; that'd be true also of your service, domain object, locator or service locator with RequestFactory, unless you use @ServiceName and @ProxyForName). Otherwise, GWT can work with only the *.java files, without the *.class. > is this always the case ? or only if relying on generators ? > AFAICT, only when generators read the annotations (i.e. when the PlaceHistoryMapperGenerator calls getAnnotation(WithTokenizers.class)) > I encountered this problem when I defined my custom annotations, > which I used in conjunction with GIN BindingAnnotation. > and sometimes at initialization, I was getting exceptions, > suggesting the Annotations cannot be found, despite them being in > classpath. > GIN is a bit special, it works directly from the compiled classes, never from the *.java files (which also means it won't see your "super-source" versions of classes) > > -- 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.