Make sure you don't have gwt-user from both 2.7 and 2.8 in your classpath: 
it could be that 2.7 is earlier than 2.8 in the classpath, so the compiler 
sees the Comparator, List, Set and Arrays from 2.7, that don't have stream 
support, and then chokes when parsing Stream (which only exists in 2.8).

On Thursday, February 16, 2017 at 6:23:28 AM UTC+1, Magnus wrote:
>
> Hello,
>
> after upgrading a project from GWT 2.7.0 to GWT 2.8.0 I and when compiling 
> with the GWT compiler using the -strict option, I get a lot of errors like 
> this:
>
>    Tracing compile failure path for type 'java.util.stream.Stream'
>       [ERROR] Errors in 
> 'jar:file:/home/magnus/dvl/lib/gwt-2.8.0/gwt-user.jar!/com/google/gwt/emul/java/util/stream/Stream.java'
>          [ERROR] Line 1113: The method naturalOrder() is undefined for the 
> type Comparator
>          [ERROR] Line 101: The method spliterator() is undefined for the 
> type List<Stream<? extends T>>
>          [ERROR] Line 1098: The method naturalOrder() is undefined for the 
> type Comparator
>          [ERROR] Line 1122: The method spliterator() is undefined for the 
> type List<T>
>          [ERROR] Line 181: The method stream() is undefined for the type 
> Set<T>
>          [ERROR] Line 85: The method stream(Object[]) is undefined for the 
> type Arrays
>          [ERROR] Line 185: The method stream(T[]) is undefined for the 
> type Arrays
>
> When switching back to GWT 2.7.0, the errors don't appear.
>
> Unfortunately, the messages do not point in my code. So how do I have to 
> modify my project in order to solve the problem?
>
> Thanks
> Magnus
>

-- 
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+unsubscr...@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.

Reply via email to