I just noticed that there is HasAnnotations interface... I might try putting that to use...
On Apr 16, 9:38 pm, Marko Vuksanovic <markovuksano...@gmail.com> wrote: > Well I've been looking at the existing code and I have seen that > JClassType implements getMethods(). Then I would be able to check if a > method has Annotation applied - using isAnnotationPresent() method. > > I am not sure how to check if a method has an annotation applied and > not to use the refelection package. The problem is that that package > cannot be used in translatable code. Obviously I'm missing something > here... > > On Apr 16, 8:28 pm, John Tamplin <j...@google.com> wrote: > > > > > > > On Fri, Apr 16, 2010 at 1:26 PM, Marko Vuksanovic <markovuksano...@gmail.com > > > > wrote: > > > Basically, I'm trying to figure out how to implement Junit 4 into GWT. > > > For the beginning I am interested on how to apply some annotation to > > > some method in GWTTestCase and somehow detect, in GWTTestCase > > > translatable code, that a specific method has some annotation applied. > > > The idea is to apply some annotation - maybe @GwtSetUp to some method > > > which would have the same effect as gwtSetup method in the GWTTestCase > > > now. > > > Ok, but I still don't understand the original question. What exactly are > > you trying to do that you think GWTTestCase needs to extend a TypeOracle > > type for it to work? > > > -- > > John A. Tamplin > > Software Engineer (GWT), Google > > > --http://groups.google.com/group/Google-Web-Toolkit-Contributors > > --http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors