Error compiling with trunk and guava-gwt-18.0.jar

170 views
Skip to first unread message

John Huss

unread,
Nov 20, 2015, 10:30:23 AM11/20/15
to GWT Contributors
I built GWT trunk locally today and I'm trying to compile my app that uses Java 8 lambdas along with guava-gwt-18.0,jar.  When I compile I get an error thrown because of guava:

     [java]    Tracing compile failure path for type 'com.google.common.collect.GwtPlatform'

     [java]       [ERROR] Errors in 'jar:file:/Users/john/repos/styleware-net/Salondata/lib/guava-gwt-18.0.jar!/com/google/common/collect/super/com/google/common/collect/GwtPlatform.java'

     [java]          [ERROR] Line 38: The method createFrom(T[], int) is undefined for the type Array

     [java]    [ERROR] Aborting compile due to errors in some input files

     [java] Java Result: 1



For reference, this previously DID compile with an older version of GWT that I built in late January.


Thanks,

John

Jens

unread,
Nov 20, 2015, 10:45:15 AM11/20/15
to GWT Contributors
You need to use Guava from their master branch or a SNAPSHOT build. Guava will do a new release as soon das GWT 2.8 has been released.

-- J.

Thomas Broyer

unread,
Nov 20, 2015, 5:25:34 PM11/20/15
to GWT Contributors


On Friday, November 20, 2015 at 4:45:15 PM UTC+1, Jens wrote:
You need to use Guava from their master branch or a SNAPSHOT build. Guava will do a new release as soon das GWT 2.8 has been released.

Oh, I thought 19.0-rc2 (or even 19.0-rc1) was enough.

Goktug Gokdogan

unread,
Nov 20, 2015, 5:27:45 PM11/20/15
to google-web-toolkit-contributors
I would expect the RCs to work, the patch is already in the trunk for a while.

--
You received this message because you are subscribed to the Google Groups "GWT Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/8dfabed8-011b-4b7f-bb42-41acca24d72b%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Jens

unread,
Nov 20, 2015, 8:37:20 PM11/20/15
to GWT Contributors
They have reverted the Array fix in the release branch of Guava 19 as they want it to be GWT 2.6 / 2.7 compatible. Guava 20+ will require GWT 2.8+


-- J.

Lars

unread,
Nov 23, 2015, 3:17:56 PM11/23/15
to GWT Contributors
You could try to patch the guava-gwt.jar locally by yourself ... you need only apply this patch https://github.com/google/guava/commit/9e56ef17c335319d21f1f2c454176c9d32687a59 by editing a java source file in the jar and it should work... I did a similar patch for guava 17 and this works with gwt 2.7 and the latest snapshot for gwt 2.8 (both with Java7)! :-)
Reply all
Reply to author
Forward
0 new messages