Re: Strange error with streams

2016-11-03 Thread foal
Hi Andrey, Tried to create simple project with given classes - all works as desired. Best, Stas On Wednesday, November 2, 2016 at 2:38:25 PM UTC+1, foal wrote: > > Hi Andrey, > > No problem, even a little bit latter. > > Please note that I have use GWT 2.8RC3 and preleased version of Guava. So

Re: Strange error with streams

2016-11-02 Thread foal
Hi Andrey, No problem, even a little bit latter. Please note that I have use GWT 2.8RC3 and preleased version of Guava. So if you fix something between RC3 and the release it may be a reason. Best, Stas On Wednesday, November 2, 2016 at 2:31:16 PM UTC+1, Andrei Korzhevskii wrote: > > Hi foal

Re: Strange error with streams

2016-11-02 Thread Andrei Korzhevskii
Hi foal, We had kind of similar problems when implemented Stream support but I cannot reproduce it now in a simple test like https://gist.github.com/nordligulv/9dfa0ca5ccfed3def097aefc59ea1e32 Can I ask you to create simple maven project with these classes to reproduce it? On Tuesday, Novembe

Re: Strange error with streams

2016-11-01 Thread foal
Simplified widget is in attachment. Mehod createButtons contains the the problem code. Let me know if you need something else. Stas On Tuesday, November 1, 2016 at 11:13:41 AM UTC+1, Jens wrote: > > Use -style PRETTY as SDM parameter so that the JS code is more readable. > > Looks like a GWT b

Re: Strange error with streams

2016-11-01 Thread Thomas Broyer
IIRC, there are gotchas with method references in some cases, and using lambdas workarounds the problem. Colin or Andrei would know better as it was them that had such issues when implementing… the streams emulation. -- You received this message because you are subscribed to the Google Groups "

Re: Strange error with streams

2016-11-01 Thread Jens
Use -style PRETTY as SDM parameter so that the JS code is more readable. Looks like a GWT bug either in the compiler because of method references or inside the Stream emulation. If you can provide a minimal, reproducible example then open a bug report. -- J. -- You received this message beca

Strange error with streams

2016-11-01 Thread foal
Hi, Why the following code throw runtime exception ConsoleLogger.java:32 ReferenceError: jQw_g$ is not defined at MCw_g$.RCw_g$ [as createButtons_5_g$] (MessageBox.java:57) Stream.of(actions).map(this::createButton).forEach(p::add); while the classic equivalent works without errors