[jax-rs-spec users] [jsr339-experts] Re: UriBuilder.fromMethod

From: Bill Burke <>
Date: Thu, 08 Aug 2013 08:37:30 -0400

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.

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