Hi, Lukas!
A brief look into JArrayString and related sources says the reason of your
error is inappropriate native 'Array' creation. Using any global JS objects
one should use $wnd as the scope object. And JArrayBaseImpl uses mere 'new
Array()' which is incorrect. Sometimes it is really works. I used to write
here about this issue and in some places it was fixed. But it turns out that
not in all. If I had access to the sources I'd run something like find
ol-gwt/src -name '*.java" | xargs sed -i -e'/new Array\(/new
\$wnd\.Array\(/g' =)
What I do when meet something like that is derive at some safe point and
rewrite buggy code. In your case you could create JMyArrayBase and rewrite
its constructor in a proper way.
If you plan to work tightly with ol-gwt and GWT in whole I'd recommend you
to dig deeply into GWT philosophy. There are a lot of material on official
GWT page and some independent developers hold their blogs about GWT. Also
there are couple of hard-copy books about development with GWT. Without
comprehensive understanding of the basic GWT principles it will be very hard
to trace the problems which you will (I'm very sure you will) meet. At least
it was so for me.
--
Sincerely, Alexander
|