This has actually happened to us before and someone on IRC was
reporting it too. There doesn't seem to be an issue about this... can
you post one? http://code.google.com/p/google-web-toolkit/issues/list

The problem seems to happen because GWT emulates longs on the client
side (since native JS does not have a concept of longs). In general,
the emulated longs perform very poorly. The work around is to use a
double instead.

--
Arthur Kalmenson



On Wed, Jan 21, 2009 at 10:18 AM, Rune V. Sjoen <[email protected]> wrote:
>
> If I try to cast a long to an int value my browser just becomes
> unresponsive (firefox) and I have to kill it. Also trying to append to
> a StringBuffer using sb.append(mylong + "") or sb.append(String.valueOf
> (mylong)) will cause the same effects.
>
> Any idea how (if) I can cast a long to an int, or if there are other
> clever ways of representing numbers > 2^32 ?
>
> >
>

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