-
Notifications
You must be signed in to change notification settings - Fork 93
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
io.smallrye.graphql.client.impl.typesafe.HeaderBuilder: throws RuntimeException when parameter name is not available even when a name is provided in @Header #1714
Comments
It won't work without |
I'll take a look. |
Thanks @t1 for resolving this. Note that in the future we want to switch from reflective calls to scanning the application's Jandex index, so |
We recently tried to instantiate a GraphQL Client in Wildfly 27.0.1 with the GraphQl Feature pack that looked like this:
This failed with a RuntimeException:
"Missing name information for arg0. You can either annotate all parameters with @Name, or compile your source code with the -parameters options, so the parameter names are compiled into the class file and available at runtime."
We actually compiled the app without the -parameters, so changing this worked around the error. But I think it should never have been thrown as the parameter name from the byte code is only required as a fallback when there is no name provided in @Header.
Expected behaviour: missing parameter name in the byte code should not fail in HeaderBuilder when there is a name provided in @Header
The text was updated successfully, but these errors were encountered: