users@jax-rs-spec.java.net

[jax-rs-spec users] [jsr339-experts] Re: Request/Response.getEntity(...) and Request/ResponseBuilder.entity(...) should take annotations array argument

From: Sergey Beryozkin <sberyozkin_at_talend.com>
Date: Thu, 5 Jan 2012 10:51:19 +0200

On 03/01/12 12:35, Marek Potociar wrote:
> FYI: http://java.net/jira/browse/JAX_RS_SPEC-160
>
> The proposal is to add new method overloads to fix the issue.

Looks reasonable, however, I'm wondering, how do you expect the calling
code to obtain these annotations ?
If we have a server application code working with Request then I can
imagine how this can be done - though may be some clarifications are
needed how to obtain such annotations in case of the annotation inheritance.
But it is not quite clear to me how to retrieve the annotations in other
cases

Cheers, Sergey



>
> Marek