dev@jsr311.java.net

Re: JSR311: TypeLiteral

From: Stephan Koops <Stephan.Koops_at_web.de>
Date: Wed, 04 Jun 2008 11:39:22 +0200

Hi Paul,

sorry, I'm not sure if I understand what you want to say (I should use
more English ...). Do you mean my idea is good or will not work?

Stephan

Paul Sandoz wrote:
> 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() { ... }
> 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.