You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Andriy Redko (Jira)" <ji...@apache.org> on 2019/12/09 02:12:00 UTC
[jira] [Updated] (CXF-8179) JSON Jackson does not handle resource
returning CompletionStage
[ https://issues.apache.org/jira/browse/CXF-8179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andriy Redko updated CXF-8179:
------------------------------
Affects Version/s: 3.2.11
> JSON Jackson does not handle resource returning CompletionStage<X>
> ------------------------------------------------------------------
>
> Key: CXF-8179
> URL: https://issues.apache.org/jira/browse/CXF-8179
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 3.2.11, 3.3.4
> Reporter: Baptiste AIGLIN
> Assignee: Andriy Redko
> Priority: Major
> Attachments: cxf-mp-reproducer.zip, exception.txt
>
>
> 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 ?
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)