dev@jsr311.java.net

Re: JSR311: GenericEntity can only support one parameter

From: Bill Burke <bburke_at_redhat.com>
Date: Wed, 20 Aug 2008 17:59:39 -0400

Marc Hadley wrote:
> On Aug 20, 2008, at 3:59 PM, Bill Burke wrote:
>
>> Why does GenericEntity only support one generic parameter? i.e.
>> List<String>? Why are we narrowing the superclass generic type to a
>> ParameterizedType and getting the first parameterized value?
>
> The code is getting the type of the GenericEntity which only has one
> generic parameter. E.g. for GenericEntity<Map<String,Integer>> the type
> is Map<String, Integer>. It isn't getting the type of the Map, you have
> to do that yourself from the Type returned by getType().
>

Lol. I is stupid....Sorry to waste your time.

Bill



-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com