How do you create an instance of JSMyInterface. If you are doing eval then i
think you have to first create an JsArray and copy the elements to the
ArrayList. This is beacuse there is now way to now that it is an ArrayList
when you using eval. But I could be wrong.

2010/1/24 Roger Studner <rstud...@gmail.com>

> Question.. if I have an interface:
>
> public MyInterface {
>   ArrayList<Something> getSomethings();
> }
>
> Then on the client I implement:
>
> public JSMyInterface extends JavascriptObject implements MyInterface {
>   private ArrayList<Something> mySomethings;
>
>   public ArrayList<Something> getSomethings() {
>       return mySomethings;
>   }
> }
>
> This works great when I deploy my app/run it in a browser.
>
> BUT, if I run it in DevMode(2.0).. I get:
>
> ClasscastException, cannot cast javaScriptObject to ArrayList.
>
> So why is DevMode being a stickler/stinker hah
>
> Roger
>
> On Jan 23, 2010, at 8:23 AM, Fletch wrote:
>
> > Upon upgrading to GWT 2.0 on my laptop I am able to take advantage of
> > the new "Development Mode" and run GWT applications in my browser
> > without any error. Unfortunately there is basically no error logging
> > like 1.71, there is no way to debug server interactions that I can
> > see. Can someone please help me figure out how to enable this for the
> > Eclipse plugin?? Is there something I am doing wrong? Please let me
> > know if you need any more information from me.
> >
> > Thank you,
> >
> > Fletch
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com
> .
> > To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com>
> .
> > For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to