Details
Description
Hello,
While testing to integrate the CXF Microprofile implementation in order to perform asynchronous client calls using client proxies, I encounter the Exception raised by the json provider due to the returned generic type being CompletionStage.
It is clear that MicroProfileClientProxyImpl#getReturnType(Method, Message) is behaving correctly regarding the returnType, however inside the ClientProxyImpl#handleResponse(Message, Class<?>) we also compute the genericType based on the method.getGenericReturnType() which is of type CompletionStage, therefore the provider is not able to deserialize the String correctly as internally it uses the genericType.
Do you think it could be possible to update the InjectionUtils.processGenericTypeIfNeeded to add cases for CompletionStage in order to change the genericType returned in this case ?