Replies: 4 comments 1 reply
-
Can you show an example? What version of RESTEasy are you using? |
Beta Was this translation helpful? Give feedback.
-
Sure I can. I simplified my usecase just to show the issue. The service that is shared between client and server
The server implementation (irrelevant for the current problem)
The client
And of course the SomeObjectParamConverterProvider (also shared between client and server)
On the server side I am getting:
On the client side I am getting
I was expecting to get the annotations on the client side too, especially the "@SomeAnnotation" since the annotation is set on the common interface both client and server have access to. |
Beta Was this translation helpful? Give feedback.
-
After some digging, annotations are not passed through at this point: But they are available. Continuing the stack of calls, it ends up calling It should probably call |
Beta Was this translation helpful? Give feedback.
-
I think the AbstractCollectionProcessor.buildIt method should look more like this
|
Beta Was this translation helpful? Give feedback.
-
I am trying to use
ParamConverterProvider.getConverter(Class<T> rawType, Type genericType, Annotation[] annotations)
with RestEasy client but I am always getting "null" as annotations array.The behaviour is not the same on server side.
I would like to factorize all converters by using annotations but it does not seem possible.
Beta Was this translation helpful? Give feedback.
All reactions