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.


Reply via email to