12-07-2011 08:39 AM
If you ever wonder why your GWT app doesn't start on a blackberry OS7, you might be experiencing the same problem I had a week ago. I spend a couple of hours investigating and basically, if you try to perform a Integer.parseInt, it fails miserably. Nothing in the logs, nothing in the console, etc. Debugging the JS gwt code I found that it's checking on the min/max value of an int. And guess what? OS7 browser doesn't support them. That looks like a dodgy bit overflow problem... I put a little test case together on StackOverflow for you to understand the problem. Here's a copy of it:
<html>
<body>
test page
<script>
i = 0;
if(i < -2147483647) {
alert("very low")
}
if(i < -2147483648) {
alert("very very low")
}
if(i < -2147483649) {
alert("very very very low")
}
</script>
</body>
</html>
Surprisingly, the phone comes up with the message "very very low".
So, solutions I'm considering are:
Are you guys experiencing the same problem? Any other idea how to fix it?
12-08-2011 04:56 PM - edited 12-08-2011 04:58 PM
The source of that issue is in browser and (nothing to do with GWT itself) and will be fixed in latter OS updates.
Please make sure that your work around won't break when issue is resolved.
Thanks.
button below the post(s)
12-09-2011 04:47 AM
yes I know! I thought it was clear with the testcase I provided, wasn't it?
So what's going to happen now? When is that going to be solved? 7.2? 7.3? 8.0?
12-09-2011 11:31 AM
The fix should be in the next release of 7.1, I wouldn't coun't that 7.0 will have that fix, at least not soon.
button below the post(s)