I've been working with generics for quite a while (and quite like them) but this one has me stumped!

public WORequest createRequest(String method,String url,String anHTTPVersion,Map<String,? extends List<String>> someHeaders,NSData content,Map<String,Object> someInfo)
{
...
        someHeaders.add("foo", Collections.<String>singletonList("bar"));
...
}

This causes a compile error "The method add(String,List<String>) is undefined for the type Map<String,capture#1-of? extends List<String>>". Any help appreciated!

cheers.

___
Andrew Lindesay
www.lindesay.co.nz

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to