resteasy/Resteasy — pull request #79 by liweinan (2012-05-01 10:42:20+00:00)
Title: resteasy-643

This is for trunk, if it's fine I'll submit patches for Branch_2_3. I've changed the code from:

if (notAnnotatedParamCount > 1) {
logger.warn(implementation.getDeclaringClass().getName() + "." + implementation.getName() + "(): Resource methods MUST NOT have more than one parameter that is not annotated with one of the JAX-RS Annotations.");
return;
}

to:

if (notAnnotatedParamCount > 1) {
logger.warn(implementation.getDeclaringClass().getName() + "." + implementation.getName() + "(): Resource methods MUST NOT have more than one parameter that is not annotated with one of the JAX-RS Annotations.");
break;
}

Because we have other extended annotations that will actually work correctly though it violates the spec. Such as:

@Suspend
@MultipartForm
@Form

And @MultipartForm is in multipart provider. We may also have more extended annotations in the future.