users@jsr311.java.net

Re: JSR311: WebAppExc subclasses? and: generic type for MessageBodyWriters

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Thu, 05 Jun 2008 17:20:20 -0400

On Jun 5, 2008, at 5:16 PM, Bill Burke wrote:
>>>
>>> Why not templatize Response?
>>>
>>> @GET
>>> Response<List<String>> get() {...}
>>>
>> Paul and I tried to do this a while back but, IIRC, we couldn't get
>> it to work properly with ResponseBuilder. Definitely interested in
>> a generic Response if we can get that to work.
>
> Would be cool if you remembered why. In the case I'm proposing,
> you'd get the type from the method signature anyways (which works).
>
I'll have another go to remind myself.

Marc.

---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.