On 25 août, 16:52, pipo <[email protected]> wrote:
> it seems the method Date.compareTo(Date myDate) does not work with the
> compiled version on GWT client side code but work perfectly in Web
> Hosted mode.

That's because hosted mode uses the pure-Java Date while web mode
("compiled version") uses a JavaScript emulation.

> Is it normal or is it a bug?

It isn't normal, but compareTo looks fine:
http://code.google.com/p/google-web-toolkit/source/browse/releases/1.7/user/super/com/google/gwt/emul/java/util/Date.java#132
...and further mode it is unit-tested:
http://code.google.com/p/google-web-toolkit/source/browse/releases/1.7/user/test/com/google/gwt/emultest/java/util/DateTest.java#123

> Instead of compareTo() I compare two dates using getTime() method.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to