Bad code generation for Firefox

2 views
Skip to first unread message

David Given

unread,
Apr 6, 2008, 7:01:05 PM4/6/08
to Google Web Toolkit
I'm running into a situation where GWT is generating code that won't run
on Firefox. (It runs fine on Opera and the hosted browser; haven't tried
IE yet.)

It's generating the following code for a particular method (in PRETTY mode):

function $getTextBrowser(this$static, name){
return dynamicCast($get_2(this$static._textbrowsers, name), 10);
}

...but producing the error message 'thisstatic is undefined'.

Before I go and try to put together a test case, which is not going to
be fun, has anyone seen anything like this before?

I'm using GWT 1.4.61 for Linux.

--
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│ "I have always wished for my computer to be as easy to use as my
│ telephone; my wish has come true because I can no longer figure out
│ how to use my telephone." --- Bjarne Stroustrup

signature.asc

Adam T

unread,
Apr 7, 2008, 2:10:42 AM4/7/08
to Google Web Toolkit
>
> has anyone seen anything like this before?
>

Maybe one of the comments in the below search might help you.

http://groups.google.com/group/Google-Web-Toolkit/search?group=Google-Web-Toolkit&q=this%24static+is+undefined&qt_g=Search+this+group

//Adam

David Given

unread,
Apr 7, 2008, 5:38:58 AM4/7/08
to Google-We...@googlegroups.com
Adam T wrote:
[...]

Hmm, thanks.

(Summary: that's what happens in some circumstances if you call a method
on a null instance variable.)

I'll check the code (which I don't have access to right now) to see if
there are any code paths where I end up not initialising the object
properly. My code flow is pretty simple so I don't *think* there are,
but it's worth double checking...

--
David Given
d...@cowlark.com

Reply all
Reply to author
Forward
0 new messages