El miércoles, 11 de diciembre de 2013 15:14:19 UTC+1, Thomas Broyer escribió: > > > > On Friday, November 8, 2013 9:01:01 PM UTC+1, Michael Hirsch wrote: >> >> When I compile my app with gwt-2.6.0-rc1, I get complaints about >> guava-gwt: >> [ERROR] Errors in >> 'jar:file:/home/mhirsch/.gradle/caches/artifacts-24/filestore/com.google.guava/guava-gwt/14.0.1/jar/de1f56fc5149d9e80c0e5107493370db2fa2d5e9/guava-gwt-14.0.1.jar!/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java' >> [ERROR] Line 112: Name clash: The method copyOf(Map<? extends >> K,? extends V>) of type ImmutableSortedMap<K,V> has the same erasure as >> copyOf(Map<? extends K,? extends V>) of type ImmutableMap<K,V> but does not >> hide it >> [ERROR] Errors in >> 'jar:file:/home/mhirsch/.gradle/caches/artifacts-24/filestore/com.google.guava/guava-gwt/14.0.1/jar/de1f56fc5149d9e80c0e5107493370db2fa2d5e9/guava-gwt-14.0.1.jar!/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java' >> [ERROR] Line 140: Name clash: The method copyOf(Collection<? >> extends E>) of type ImmutableSortedSet<E> has the same erasure as >> copyOf(Collection<? extends E>) of type ImmutableSet<E> but does not hide it >> [ERROR] Line 145: Name clash: The method copyOf(Iterable<? >> extends E>) of type ImmutableSortedSet<E> has the same erasure as >> copyOf(Iterable<? extends E>) of type ImmutableSet<E> but does not hide it >> [ERROR] Line 150: Name clash: The method copyOf(Iterator<? >> extends E>) of type ImmutableSortedSet<E> has the same erasure as >> copyOf(Iterator<? extends E>) of type ImmutableSet<E> but does not hide it >> > > I seem to remember having seen somewhere that this issue is due to how > Java 7 deals with generics. > Unless you use Java 7 language features, try passing -sourceLevel 6 to the > GWT compiler (or DevMode). > > >> I'm not sure if I can use guava 15. Errai pulls in version 14, I think. >> > > Guava has a clear compatibility > policy<https://code.google.com/p/guava-libraries/wiki/PhilosophyExplained#Iteration>, > > so unless Errai uses @Beta or @Deprecated APIs from Guava 14, it should > Just Work™ with Guava 15. >
*Thank you Thomas. * It looks that sourceLevel <http://www.gwtproject.org/release-notes.html#Release_Notes_2_6_0_RC1>is being ignored. I've tried *-sourceLevel 6 , **sourceLevel XX ... *nothing. My default JDK is 1.6 , but also proved on JDK 1.7. Always getting the same exception . * [ERROR] Errors in 'com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java'* * [ERROR] Line 140: Name clash: The method copyOf(Collection<? extends E>) of type ImmutableSortedSet<E> has the same erasure as copyOf(Collection<? extends E>) of type ImmutableSet<E> but does not hide it* * [ERROR] Line 145: Name clash: The method copyOf(Iterable<? extends E>) of type ImmutableSortedSet<E> has the same erasure as copyOf(Iterable<? extends E>) of type ImmutableSet<E> but does not hide it* * [ERROR] Line 150: Name clash: The method copyOf(Iterator<? extends E>) of type ImmutableSortedSet<E> has the same erasure as copyOf(Iterator<? extends E>) of type ImmutableSet<E> but does not hide it* -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.