users@jersey.java.net

Re: [Jersey] Re: resources inheritance

From: Martin Probst <mail_at_martin-probst.com>
Date: Wed, 12 Aug 2009 09:59:08 +0200

>> To fix the issue, you need to use a GenericEntity.
>
> ?? what you mean ?

I mean: to use collections as return values and select
MessageBodyWriters(/Readers) for the specific generic type, you need
to use the class "javax.ws.rs.core.GenericEntity".

> as Sandoz commented, the type erasure of Generics do the mess :)

Yes, that's what I'm saying.

Martin