Wednesday, June 1, 2011

Re: Ignoring unresolvable annotation type

I don't plan to use or check the annotation in GWT context so I am ok
if GWT ignores it. MyObject is still compiled and I can use it in
Async requests, right?

The reason I have the annotation is the classes are also used in
another web service project, which utilizes the annotation.

Just wondered if there is way to get rid of the warning.


On Jun 1, 4:24 pm, Adolfo Panizo Touzon <adolfo.pan...@gmail.com>
wrote:
> As you know, GWT is not pure Java, so you can´t use some things.
>
> One way to solve these problem is including a library for reflection (see
> gwt-ent in google).
>
> 2011/6/1 randasin <r4nd7...@gmail.com>
>
>
>
>
>
>
>
>
>
> > I have one annotation and one object.
>
> > com.example.model.shared.MyAnnotation
> > com.example.model.shared.MyObject
>
> > MyObject is declared with MyAnnotation:
>
> > @MyAnnotation
> > public class MyObject {
> > ...
> > }
>
> > When I compile, I am getting this warning
>
> > [java]    Resolving com.example.model.shared.MyObject
> > [java]       Found type 'com.example.model.shared.MyObject'
> > [java]          [WARN] Ignoring unresolvable annotation type
> > com.example.model.shared.MyAnnotation
>
> > The compilation still succeeded, but I wonder what side effects are
> > there?  How do I resolve this warning?
>
> > --
> > 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-toolkit@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscribe@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> El precio es lo que pagas. El valor es lo que recibes.
> Warren Buffet

--
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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment