I've found a similar old problem : look at
http://code.google.com/p/google-web-toolkit/issues/detail?id=2279
Yves

On 12 nov, 19:52, yves <yves.ko...@gmail.com> wrote:
> @All
>
> I replaced the array T[] by a List<T> and I still get the same OOME.
>
> Summary :
> 1) when you break the self-referenced generics ResultNode<T extends
> ResultNode<?>> by
> public class ResultNode<T extends IResultNode> implements IResultNode
> and
> public interface IResultNode extends Result
>
> => this still produces the error
>
> 2) when you replace the array T[] by a List<T>
> => still the same error
>
> Thus my conclusion : the only way to avoid this error is to avoid the
> usage of generics in a Serializable type (used in a RPC call)
>
> HTH
> Yves
>
> On 12 nov, 16:21, Miguel Méndez <mmen...@google.com> wrote:
>
> > [+zhuyi]
>
> > On Fri, Nov 12, 2010 at 9:52 AM, Miguel Méndez <mmen...@google.com> wrote:
> > > On Fri, Nov 12, 2010 at 5:34 AM, yves <yves.ko...@gmail.com> wrote:
>
> > >> @Jeff
> > >> As you suggested me, I tried the followig without success (same OOME
> > >> problem):
>
> > >> public class ResultNode<T extends IResultNode> implements IResultNode
> > >> and
> > >> public interface IResultNode extends Result
>
> > >> Again this is syntaxically correct and compiles sucessfully with
> > >> javac, BUT gives again the OOME problem with the GWT compiler.
>
> > >> So apprently the problem is NOT due to the self-referenced generics
> > >> ResulNode<T extends ResultNode<?>>
>
> > >> @Miguel
> > >> As youl suggests in your link, is the problem the serialization of an
> > >> array of type T : T[] next; ?
>
> > >> As a workarround, I'll try to replace this array T[] by an
> > >> ArrayList<T> which serializes without know issue.
> > >> Yves
>
> > > I do suspect that T[] is the issue. �...@zhuyi: can you take a look at
> > >http://code.google.com/p/google-web-toolkit/issues/detail?id=5582andlet
> > > me know what you think.
>
> > > --
> > > Miguel
>
> > --
> > Miguel

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to