users@jersey.java.net

Re: [Jersey] Parameter "type" in MessageBodyWriter

From: Jaka Jančar <jaka_at_kubje.org>
Date: Thu, 16 Apr 2009 12:36:40 +0200

On Thu, Apr 16, 2009 at 11:28 AM, Paul Sandoz <Paul.Sandoz_at_sun.com> wrote:
>> That is, is there a situation when type isn't equal to:
>>
>> genericType instanceof ParameterizedType
>>   ? ((ParameterizedType) genericType).getRawType()
>>   : genericType;
>>
>
> The type will be the same or a sub class of the raw type. Or put another
> way:
>
> (ParameterizedType) genericType).getRawType().isAssignableFrom(type);
>
Hmm... can you give an example of how it can come to this? (that
genericType.getRawType() != type )