Resteasy Reactive Client: Parameter "annotations" is always null in ParamConverterProvider
See original GitHub issueDescribe the bug
The parameter annotations
in ParamConverterProvider
is always null.
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
@Path("/")
@RegisterProvider(MyParamConverterProvider::class)
interface MyRestService {
@POST
@Path("/{x}")
fun xyz(@PathParam("x") @MyParam value: String): Uni<String>
}
@MustBeDocumented
@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.FIELD, AnnotationTarget.VALUE_PARAMETER)
annotation class MyParam
class MyParamConverter : ParamConverter<String> {
override fun toString(value: String): String = value
override fun fromString(value: String): String = value
}
class MyParamConverterProvider : ParamConverterProvider {
override fun <T : Any?> getConverter(
rawType: Class<T>?,
genericType: Type?,
annotations: Array<out Annotation>?
): ParamConverter<T>? {
// "annotations" is alway null
return annotations?.filterIsInstance(MyParam::class.java)?.firstOrNull()?.let {
MyParamConverter() as ParamConverter<T>
}
}
}
Output of uname -a
or ver
No response
Output of java -version
Java 11
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.6.2
Build tool (ie. output of mvnw --version
or gradlew --version
)
Maven
Additional information
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Writing REST Services with RESTEasy Reactive - Quarkus
This is the reference guide for RESTEasy Reactive. For a more lightweight introduction ... Table 2. Table HTTP request parameter annotations ...
Read more >RESTEasy JAX-RS - JBoss.org
Processing Spring Web REST annotations in RESTEasy; 48.6. ... use optional typed parameters, and eliminate all null checks by using methods like Optional....
Read more >Chapter 2. Developing Jakarta RESTful Web Services Web ...
These annotations simplify the process of mapping Java objects to web ... a parameter to your Jakarta RESTful Web Services method prompts RESTEasy...
Read more >Index (RESTEasy Reactive - Runtime 2.7.0.Final API)
Returns an alternate endpoint invoker for this method. annotations - Variable in class org.jboss.resteasy.reactive.server.jaxrs.
Read more >jax rs - Method parameter annotated with @FormParam is ...
But the parameters sent by the client are always received as null . @POST @Path("/login") @Produces({ "application/json" }) public ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Added to my TODO list.
Not sure, we have a lot to get done for
2.7.0