Bah. Writing in haste I worded it so badly. > until I stored the List object into a variable on the client.
I should have said: until in my client code I assigned the object of type List to a variable declared as type List. > and stored the resultant List<Foo> object into a variable on the client Should read: and assigned the List<Foo> or List<Object> object to a variable of type List<Foo> or List<Object> On Jan 2, 9:07 am, leslie <[email protected]> wrote: > I'm seeing the problem as well. But interestingly I didn't see the > generated warnings until I stored the List object into a variable on > the client. So the RPC call itself is not where the issue is for me. > I was returning lists from the server and only using the contents by > calling the toArray() method without saving the object instance. And > I didn't see the warnings. But then I changed the code, and stored > the resultant List<Foo> object into a variable on the client, > specifically into a gui class, and that's when the warnings all > appeared. > > On Dec 18 2009, 4:21 pm, Raziel <[email protected]> wrote: > > > > > I'm having the same issue: my RPC method returns beans that contains > > lists, and for whatever reason these ListenerCollection classes are > > added to the serialization policy. > > > As you can see in my case the problem is harder to identify since I > > don't have ANY return type nor parameter directly extending list. The > > list references come through aggregation. I understand that anyway the > > serialization policy still has to take care of all types, no matter > > whether they're direct return types or parameters, but I just want to > > point out how this could become a more widespread issue. > > > On Dec 17, 5:26 pm, Al Murauski <[email protected]> wrote: > > > > The same problem. > > > > We're facing this after upgrading to gwt 2.0. > > > > Any ideas? > > > > Thanks in advance! > > > > On 8 дек, 19:24, Luis Fernando Planella Gonzalez <[email protected]> > > > wrote: > > > > > Hi. > > > > We're using GWT 1.7 and I'm starting to experiment with 2.0 RC2 to > > > > evaluate GWT.runAsync(). > > > > > However, now as I compile the app, I get warning for deprecations in > > > > all RPC methods which return collections. I guess it's because the > > > > result is declared as java.util.Collection, and the deprecated > > > > com.google.gwt.user.client.ui.*ListenerCollectionclasses extends > > > > ArrayList, making even the alternative to change the result of RPC > > > > methods to ArrayList instead of Collection don't work. > > > > > The log is something like this, multiple times: > > > > [WARN] Warnings in 'generated:// > > > > 8D0B12EA4B123D9B133384111C9A7E38/nl/strohalm/cyclos/client/app/users/ > > > > images/UserImageRemoteService_TypeSerializer.java' > > > > [WARN] Line 50: Referencing deprecated class > > > > 'com.google.gwt.user.client.ui.ChangeListenerCollection' > > > > [WARN] Line 55: Referencing deprecated class > > > > 'com.google.gwt.user.client.ui.ClickListenerCollection' > > > > [WARN] Line 60: Referencing deprecated class > > > > 'com.google.gwt.user.client.ui.FocusListenerCollection' > > > > [WARN] Line 65: Referencing deprecated class > > > > 'com.google.gwt.user.client.ui.FormHandlerCollection' > > > > [WARN] Line 70: Referencing deprecated class > > > > 'com.google.gwt.user.client.ui.KeyboardListenerCollection' > > > > [WARN] Line 75: Referencing deprecated class > > > > 'com.google.gwt.user.client.ui.LoadListenerCollection' > > > > [WARN] Line 80: Referencing deprecated class > > > > 'com.google.gwt.user.client.ui.MouseListenerCollection' > > > > [WARN] Line 85: Referencing deprecated class > > > > 'com.google.gwt.user.client.ui.MouseWheelListenerCollection' > > > > [WARN] Line 90: Referencing deprecated class > > > > 'com.google.gwt.user.client.ui.PopupListenerCollection' > > > > [WARN] Line 95: Referencing deprecated class > > > > 'com.google.gwt.user.client.ui.ScrollListenerCollection' > > > > [WARN] Line 100: Referencing deprecated class > > > > 'com.google.gwt.user.client.ui.TabListenerCollection' > > > > [WARN] Line 105: Referencing deprecated class > > > > 'com.google.gwt.user.client.ui.TableListenerCollection' > > > > [WARN] Line 110: Referencing deprecated class > > > > 'com.google.gwt.user.client.ui.TreeListenerCollection' > > > > See snapshot: /tmp/ > > > > UserImageRemoteService_TypeSerializer2951604978153994580.java > > > > > Is there a way to remove those classes from being handled in RPC? -- 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.
