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

[jsr339-experts] Re: UriBuilder.fromMethod

From: Jan Algermissen <jan.algermissen_at_nordsc.com>
Date: Thu, 8 Aug 2013 22:09:32 +0200

Bill,
thanks for clarifying.

On 08.08.2013, at 14:37, Bill Burke <bburke_at_redhat.com> 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.

Ah - and what would they be? Any idea?

Jan






>
> 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.
>
> 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
>>
>
> --
> Bill Burke
> JBoss, a division of Red Hat
> http://bill.burkecentral.com