You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Failed to generate client for class interface io.quarkus.rest.client.reactive.ClientMultipleBodyParamLogMessageTest$Client : Resource method 'io.quarkus.rest.client.reactive.ClientMultipleBodyParamLogMessageTest$Client#java.lang.String getMessagesForTopic(int param1, int param2)' can only have a single body parameter, but has at least 2. A body parameter is a method parameter without any annotations. Last discovered body parameter is 'param2'.");
30
+
return;
31
+
}
32
+
Assertions.fail("Should have thrown an exception");
Copy file name to clipboardExpand all lines: independent-projects/resteasy-reactive/client/processor/src/main/java/org/jboss/resteasy/reactive/client/processor/scanning/ClientEndpointIndexer.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -142,7 +142,7 @@ private MethodParameter parseClientBeanParam(ClassInfo beanParamClassInfo, Index
Copy file name to clipboardExpand all lines: independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/EndpointIndexer.java
"Resource method '%s#%s' can only have a single body parameter: '%s'",
644
+
if (bodyParamType != null) {
645
+
thrownewDeploymentException(String.format(
646
+
"Resource method '%s#%s' can only have a single body parameter, but has at least 2. A body parameter is a method parameter without any annotations. Last discovered body parameter is '%s'.",
// TODO: does it make sense to default to MediaType.MULTIPART_FORM_DATA when no consumes is set?
691
692
if (!validConsumes) {
692
-
thrownewRuntimeException(String.format(
693
+
thrownewDeploymentException(String.format(
693
694
"'@FormParam' and '@RestForm' can only be used on methods annotated with '@Consumes(MediaType.MULTIPART_FORM_DATA)' '@Consumes(MediaType.APPLICATION_FORM_URLENCODED)'. Offending method is "
0 commit comments