Strange, but the following simple arithmetic expression will cause any
browser (FF, IE, Chrome, Opera, Safari), except Hosted Mode, to hang
and result in an "unresponsive script" message:

    Integer a = Integer.valueOf(1);
    Integer b = Integer.valueOf(2);
    long c = a.longValue() * b.longValue();
    Window.alert("" + c);

A simple extraction of calls to longValue() into a separate variable
solves the issue:

    Integer a = Integer.valueOf(1);
    Integer b = Integer.valueOf(2);
    long la = a.longValue();
    long lb = b.longValue();
    long c = la * lb;
    Window.alert("" + c);

Any ideas?

Thanks,

Yegor

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