compiler errors after upgrade to gwt 2.8.0

2017-02-15 Thread Magnus
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>
 [ERROR] Line 1098: The method naturalOrder() is undefined for the 
type Comparator
 [ERROR] Line 1122: The method spliterator() is undefined for the 
type List
 [ERROR] Line 181: The method stream() is undefined for the type 
Set
 [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.


Re: Animating images in GWT

2017-02-15 Thread Thomas Broyer
To preload images:
img = Document.get().createImageElement()
img.setSrc(url)

(you could then keep all those ImageElementâ‹…s in a list and use them 
directly instead of setHTML)
You can use Image widgets too, which have load event handlers.

On Wednesday, February 15, 2017 at 1:33:37 PM UTC+1, Jonathan Cook wrote:
>
> I tried with a timer but the transition is a little slow the first time as 
> the images download. Is there some way to cache or download them into 
> memory before iterating them?
> // Create a new timer that iterates the images
>Timer t = new Timer() {
>   int counter = 0;
>
>   @Override
>   public void run() {
>  if (counter < imageUrls.size()) {
> iconPreviewHTML.setHTML(" get(counter) + "\"/>");
>  }
>  counter++;
>   }
>};
>// Schedule the timer to run once in x seconds.
>t.scheduleRepeating(500);
>
>
>
>

-- 
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.


Re: Animating images in GWT

2017-02-15 Thread Kirill Prazdnikov
Use can use requestAnimaionFrame, as we do. (https://studio.cospaces.io)  It 
has exact and precise timing information in the argument

-- 
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.


Re: Animating images in GWT

2017-02-15 Thread Jonathan Cook
I tried with a timer but the transition is a little slow the first time as 
the images download. Is there some way to cache or download them into 
memory before iterating them?
// Create a new timer that iterates the images
   Timer t = new Timer() {
  int counter = 0;

  @Override
  public void run() {
 if (counter < imageUrls.size()) {
iconPreviewHTML.setHTML("");
 }
 counter++;
  }
   };
   // Schedule the timer to run once in x seconds.
   t.scheduleRepeating(500);



-- 
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.


Re: Problem compiling GWT code with Java9

2017-02-15 Thread Thomas Broyer


On Wednesday, February 15, 2017 at 10:17:30 AM UTC+1, Dave Bradlee wrote:
>
> Anyway, has anyone else tried to compile GWT code with Java9? Or any ideas 
> how we might make the compiler happy?
>
>
I hadn't tried until now, but have the exact same error with 9-ea+152 
(using package oracle-java9-installer from webupd8 on Ubuntu 16.10) on a 
simple hello-world project (that compiles OK with Java 8).

Trying to run GWT's own test suite with Java 9 might possibly help 
understand where the problem comes from.

-- 
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.


Re: Problem compiling GWT code with Java9

2017-02-15 Thread Jens
I think it is more a class path / module path issue than a unitCache issue 
(you can always delete the unit cache or don't use it at all by disabling 
it on the command line). I guess GWT Compiler simply does not see 
Core.gwt.xml even though you have inherited it.

-- J.

-- 
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.


Problem compiling GWT code with Java9

2017-02-15 Thread Dave Bradlee
At Labkey.com we're trying to compile all of our code, which includes GWT 
code, with Java9 (due for release in the summer)getting a head start. 
We have not been able to compile GWT code, which doesn't use any new Java 
features. We're getting the error
 [java] Compiling module org.labkey.experiment.property.Designer
 [java][ERROR] Unable to find type 'java.lang.Object'
 [java]   [ERROR] Hint: Check that your module inherits 
'com.google.gwt.core.Core' either directly or indirectly (most often by 
inheriting module 'com.google.gwt.user.User')

We've had an older version of GWT but have tried with the latest 2.8 as 
well and get the same thing. I've added -logLevel=DEBUG to get more info 
and the log says we're inheriting all of the appropriate packages, 
including com.google.gwt.core.Core and com.google.gwt.emul.Emulation, which 
of course is where java.lang.Object lives. It seems like something is going 
wrong with gwt-unitCache because the log looks like this:
..lots of inherits before this..
 [java]   Module location: 
file:/Users/davebradlee/trunk/server/internal/gwtsrc/org/labkey/api/gwt/Internal.gwt.xml
 [java]   Loading inherited module 'com.extjs.gxt.ui.GXT'
 [java]  Module location: 
jar:file:/Users/davebradlee/trunk/external/lib/build/gxt.jar!/com/extjs/gxt/ui/GXT.gwt.xml
 [java]  Loading inherited module 'com.google.gwt.json.JSON'
 [java] Module location: 
jar:file:/Users/davebradlee/trunk/external/lib/build/gwt-user.jar!/com/google/gwt/json/JSON.gwt.xml
 [java]   Loading inherited module 'com.allen_sauer.gwt.dnd.gwt-dnd'
 [java]  Module location: 
jar:file:/Users/davebradlee/trunk/external/lib/server/gwt-dnd-3.2.0.jar!/com/allen_sauer/gwt/dnd/gwt-dnd.gwt.xml
 [java] Public resources found in...
 [java] Translatable source found in...
 [java] Persistent unit cache dir set to: 
/Users/davebradlee/trunk/build/modules/experiment/explodedModule/gwt-unitCache
 [java] Opening cache file: 
/Users/davebradlee/trunk/build/modules/experiment/explodedModule/gwt-unitCache/gwt-unitCache-6a094daf5d20bb65adf2d207cc48308bde849f64-015A3E41072B
 [java] Looking for previously cached Compilation Units in 
/Users/davebradlee/trunk/build/modules/experiment/explodedModule/gwt-unitCache
 [java] Compiling module org.labkey.experiment.property.Designer
 [java]Found 0 cached/archived units.  Used 0 / 0 units from cache.
 [java]Compiling...
 [java]   Compilation completed in 0.00 seconds
 [java]PersistentUnitCache cleanup requested
 [java]Added 0 units to PersistentUnitCache since last cleanup
 [java]Skipped PersistentUnitCache because no units were added
 [java]Removing invalidated units
 [java]Resolving enclosing classes
 [java]Tracing compile failure path for type 'java.lang.Object'
 [java]   Checked 0 dependencies for errors.
 [java][ERROR] Hint: Check that your module inherits 
'com.google.gwt.core.Core' either directly or indirectly (most often by 
inheriting module 'com.google.gwt.user.User')
 [java] Closing cache file: 
/Users/davebradlee/trunk/build/modules/experiment/explodedModule/gwt-unitCache/gwt-unitCache-6a094daf5d20bb65adf2d207cc48308bde849f64-015A3E41072B
 
(0 units written)
 [java] Deleting empty file: 
/Users/davebradlee/trunk/build/modules/experiment/explodedModule/gwt-unitCache/gwt-unitCache-6a094daf5d20bb65adf2d207cc48308bde849f64-015A3E41072B
 [java] Shutting down PersistentUnitCache thread

Using Java8 the log looks like this
...
 [java] Persistent unit cache dir set to: 
/Users/davebradlee/trunk/build/modules/experiment/explodedModule/gwt-unitCache
 [java] Opening cache file: 
/Users/davebradlee/trunk/build/modules/experiment/explodedModule/gwt-unitCache/gwt-unitCache-6a094daf5d20bb65adf2d207cc48308bde849f64-015A3E53CB49
 [java] Looking for previously cached Compilation Units in 
/Users/davebradlee/trunk/build/modules/experiment/explodedModule/gwt-unitCache
 [java] Compiling module org.labkey.experiment.property.Designer
 [java]Found 0 cached/archived units.  Used 0 / 3794 units from 
cache.
 [java]Compiling...
 [java]   60% complete (ETR: 3 seconds)
 [java]   60% complete (ETR: 3 seconds)
 [java]   60% complete (ETR: 3 seconds)
 [java]   60% complete (ETR: 3 seconds)
 [java]   60% complete (ETR: 3 seconds)
 [java]   60% complete (ETR: 3 seconds)
 [java]   60% complete (ETR: 3 seconds)
 [java]   70% complete (ETR: 2 seconds)
 [java]   80% complete (ETR: 2 seconds)
 [java]   90% complete (ETR: 1 seconds)
 [java]   100% complete (ETR: 0 seconds)
 [java]   Compilation completed in 10.80 seconds
 [java]PersistentUnitCache cleanup requested
 [java]Added 3794 units to PersistentUnitCache since last cleanup