You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Romain Manni-Bucau <rm...@gmail.com> on 2015/05/06 14:46:10 UTC
[jaxrs] client builder and generics
Hi
when using async client jaxrs api like:
.get(new InvocationCallback<Collection<Foo>>() { ... }
the provider (body writer) get rawtype = collection (ok), genericType =
foo (ko IMO)
why isn't it Collection<Foo>? was it intended?
Seems org.apache.cxf.jaxrs.client.WebClient#doInvokeAsyncCallback is unwrap
it.
Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com>
Re: [jaxrs] client builder and generics
Posted by Sergey Beryozkin <sb...@gmail.com>.
Hi
Thanks for spotting it - probably a result of the copy and paste, added
a fixed as part of CXF-6393, added a Jackson test
Cheers, Sergey
On 06/05/15 13:46, Romain Manni-Bucau wrote:
> Hi
>
> when using async client jaxrs api like:
>
> .get(new InvocationCallback<Collection<Foo>>() { ... }
>
> the provider (body writer) get rawtype = collection (ok), genericType =
> foo (ko IMO)
>
> why isn't it Collection<Foo>? was it intended?
> Seems org.apache.cxf.jaxrs.client.WebClient#doInvokeAsyncCallback is unwrap
> it.
>
> Romain Manni-Bucau
> @rmannibucau <https://twitter.com/rmannibucau> | Blog
> <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
> <http://www.tomitribe.com>
>