New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure that @ClientHeaderParam works when the rest client contains a method with a primitive return type #27961
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
@@ -445,7 +433,7 @@ private String mockInterface(ClassInfo declaringClass, BuildProducer<GeneratedCl | |||
for (MethodInfo method : methods) { | |||
if (Modifier.isAbstract(method.flags())) { | |||
MethodCreator methodCreator = classCreator.getMethodCreator(MethodDescriptor.of(method)); | |||
methodCreator.returnValue(methodCreator.loadNull()); | |||
methodCreator.throwException(IllegalStateException.class, "This should never be called"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so, the issue was that we were returning null for primitive types.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Precisely
This comment has been minimized.
This comment has been minimized.
The test failures definitely look related |
|
Yeah, I meant the TCK tests |
…method with a primitive return type Relates to: quarkusio#27959
Resolves: #27959