dev@jsr311.java.net

Re: JSR311: TypeLiteral

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Wed, 04 Jun 2008 11:17:34 +0200

Stephan Koops wrote:
> Hi,
>
> what about a generic Response class?
> Let's stay at the given example:
> public List<Bean> getList() { ... }
> could become
> public Response<List<Bean>> getList getList() { ... }
>

Marc and I bashed our heads till they hurt trying to achieve that :-) We
could not find a way such that Response<T> works correctly with building
a response where a type T is set in a builder method.

Paul.

-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109