Re: Deprecation warning in all RPCs dealing with collections on GWT 2.0 RC2

2010-01-08 Thread Chris Ramsdale
*I've updated the issue ( http://code.google.com/p/google-web-toolkit/issues/detail?id=4438) with a workaround, let me know if it doesn't work for anyone. * * * *- Chris * On Wed, Jan 6, 2010 at 1:42 PM, Chris Ramsdale wrote: > Please star the issue and add any relevant data you may have. > > - C

Re: Deprecation warning in all RPCs dealing with collections on GWT 2.0 RC2

2010-01-06 Thread Chris Ramsdale
Please star the issue and add any relevant data you may have. - Chris On Wed, Jan 6, 2010 at 8:14 AM, Bert wrote: > I'm experiencing the same problem. > > On Dec 8 2009, 6:24 pm, Luis Fernando Planella Gonzalez > wrote: > > Hi. > > We're using GWT 1.7 and I'm starting to experiment with 2.0 RC

Re: Deprecation warning in all RPCs dealing with collections on GWT 2.0 RC2

2010-01-06 Thread Bert
I'm experiencing the same problem. On Dec 8 2009, 6:24 pm, Luis Fernando Planella Gonzalez 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

Re: Deprecation warning in all RPCs dealing with collections on GWT 2.0 RC2

2010-01-04 Thread Luis Fernando Planella Gonzalez
> Could you add a bug to the GWT issue > tracker > ? Done: http://code.google.com/p/google-web-toolkit/issues/detail?id=4438 -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post t

Re: Deprecation warning in all RPCs dealing with collections on GWT 2.0 RC2

2010-01-03 Thread Chris Ramsdale
This is a bug. The List> return type is causing the compiler to generate serialization code for any class X that extends List, where T is an interface that has a implementing class that extends class X. The following code will reproduce the issue: @Deprecated public class MyTest extends java.util.

Re: Deprecation warning in all RPCs dealing with collections on GWT 2.0 RC2

2010-01-02 Thread leslie
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 object into a variable on the client S

Re: Deprecation warning in all RPCs dealing with collections on GWT 2.0 RC2

2010-01-02 Thread leslie
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() m

Re: Deprecation warning in all RPCs dealing with collections on GWT 2.0 RC2

2009-12-18 Thread Raziel
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 extendin

Re: Deprecation warning in all RPCs dealing with collections on GWT 2.0 RC2

2009-12-17 Thread Al Murauski
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 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

Re: Deprecation warning in all RPCs dealing with collections on GWT 2.0 RC2

2009-12-11 Thread Luis Fernando Planella Gonzalez
In fact, there is a very easy way to reproduce it: Just create a RPC method which returns List>. You'll see references for those deprecated collections. On 11 dez, 17:39, Luis Fernando Planella Gonzalez wrote: > Just found the answer, and luckily in my case it was simple to > solve > I have a

Re: Deprecation warning in all RPCs dealing with collections on GWT 2.0 RC2

2009-12-11 Thread Luis Fernando Planella Gonzalez
Just found the answer, and luckily in my case it was simple to solve I have a subtype of List called PageImpl, which had another List containing the page items, plus the total count. Then (and I think is a problem in GWT compiler), the compiler resolves FocusListenerCollection, which extends Ar

Re: Deprecation warning in all RPCs dealing with collections on GWT 2.0 RC2

2009-12-11 Thread Ashar Lohmar
Hi I'm having the same kind of problem. in my app i use some libraries/object written in Java 1.4 style the objects implement Serializable but contain Lists or Maps which are declare without parameters i mean List instead of List, as the Java 1.4 requires and some RPC classes return this kind of o

Re: Deprecation warning in all RPCs dealing with collections on GWT 2.0 RC2

2009-12-11 Thread Luis Fernando Planella Gonzalez
This issue is still present on GWT 2.0 final. I've made some tests: creating a new GWT project with Collections in RPC methods don't result in such code being inserted in the generated JavaScript. The point is: our project is quite huge, but I can confirm that there are no occurrences of any of the

Deprecation warning in all RPCs dealing with collections on GWT 2.0 RC2

2009-12-08 Thread Luis Fernando Planella Gonzalez
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