Wednesday, November 23, 2016

GWT 2.8.0 compile warnings

I recently upgraded my GWT app to depend on 2.8.0 and had my compile phase immediately flooded with GWT compile warnings.  Under previous versions, there were no warnings at all.  I've done some Googling but haven't found a solution to this particular issue.  Some other similar issues surrounding other third party annotations have suggested solutions of ensuring the compile annotations are on the GWT compile classpath.  In this case, the compiled annotations are present in the gwt-user and gwt-servlet jars, both of which I have included on the compile classpath.  The warnings look like: 

Compiling module books.app.BooksApp
     [java]    Resolving books.app.common.BaseBooksApp
     [java]       Found type 'books.app.common.BaseBooksApp'
     [java]          Found type 'java.lang.Object'
     [java]             Resolving method getClass
     [java]                Found type 'java.lang.Class'
     [java]                   Resolving method createForClass
     [java]                      Found type 'java.lang.String'
     [java]                         Resolving method getFromCharCodeFunction
     [java]                            [WARN] Ignoring unresolvable annotation type jsinterop.annotations.JsProperty
     [java]                         Resolving method $isInstance
     [java]                            [WARN] Ignoring unresolvable annotation type jsinterop.annotations.JsMethod
     [java]          Resolving method isWelcomePageApplicable
     [java]             Found type 'java.lang.Long'
     [java]                Found type 'java.lang.Number'
     [java]                   Resolving method $isInstance
     [java]                      [WARN] Ignoring unresolvable annotation type jsinterop.annotations.JsMethod
     [java]             Found type 'java.lang.Boolean'
     [java]                Resolving method $isInstance
     [java]                   [WARN] Ignoring unresolvable annotation type jsinterop.annotations.JsMethod

Has anyone experienced similar warnings, and more importantly, is there any known solution to preventing them?

Any insight would be greatly appreciated.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment