users@jersey.java.net

Re: [Jersey] Annotation Inheritance

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Fri, 30 Oct 2009 21:18:08 +0100

On Oct 30, 2009, at 5:07 PM, Paul Sandoz wrote:
>
>> If yes, i cannot rely on @Path("") in IMPL.
>>
>> Also i obseerved that.
>> if the impl was
>> @Path("/dummy")
>> public class TestIMPL implements TestInterface {
>>
>> public String sayHello() {
>> // TODO Auto-generated method stub
>> return "Hello World";
>> }
>> then
>> "/dummy" worked (sorry about previous post in which i mentioned
>> this did not work)
>> also
>> "/dummy/test" gave me the same result....
>> Fits in the REST context? or another bug in jersey?
>>
>
> Only "/dummy/test" should work. So in that respect there is a bug.
>

I cannot reproduce the behavior you describe using 1.1.4-ea-SNAPSHOT.
Only the path "/dummy/test" results in the invocation of the sayHello
method. The path "/test" results in a 405 (Method Not Allowed).

Can you try again?

Paul.