users@jersey.java.net

Methods with same annotations

From: <amsmota_at_gmail.com>
Date: Tue, 27 Jan 2009 12:40:14 +0000

I have a doubt here I don't know if JSR-311 or Jersey specific.

Should we allow two methods defined with the same annotations, and
differentiate then by the *name* (or/and number) of the params?

@POST
@Path="/service/test"
void testThis(@FormaParam("test1")String test)

@POST
@Path="/service/test"
void testThat(@FormaParam("test2")String test)

So that

POST /service/test
test1=testing

get's the testThis method and

POST /service/test
test2=testing

get's the testThat method?

Or it should throw a error?