jsr339-experts@jax-rs-spec.java.net

[jsr339-experts] Re: UriBuilder.fromMethod

From: Sergey Beryozkin <sberyozkin_at_talend.com>
Date: Thu, 8 Aug 2013 13:43:57 +0100

On 08/08/13 13:37, Bill Burke wrote:
> This is correct behavior. the TCK tests this. Supposedly there are
> cases where you just want the @Path annotation from the method and not
> the path and the method.
>
> What also sucks is, if your method doesn't have a @Path annotation, this
> method throws an exception :( I've pinged expert group about this, but
> they can't seem to grok why this behavior is bad.
well. I was actually supporting your case,

Sergey
>
> On 8/8/2013 8:25 AM, Jan Algermissen wrote:
>> Hi,
>>
>> before I consider it a bug, a clarification question:
>>
>> If I have a resource annotated with @Path("a/b") that contains a
>> method annotated with @Path("c") then UriBuilder.fromMethod(..) should
>> resolve to "a/b/c" , houldn't it?
>>
>> For me, with Jersey of latest GF4 it resolves to "c" - which seems
>> unexpected. The docs are not explicit on this, hence the question.
>>
>> Jan
>>
>


-- 
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/
Blog: http://sberyozkin.blogspot.com