You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2016/08/25 11:49:20 UTC
[jira] [Resolved] (CXF-6992) ParamConverterProvider invoked with
wrong types
[ https://issues.apache.org/jira/browse/CXF-6992?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergey Beryozkin resolved CXF-6992.
-----------------------------------
Resolution: Fixed
Assignee: Sergey Beryozkin
Fix Version/s: 3.0.11
> ParamConverterProvider invoked with wrong types
> -----------------------------------------------
>
> Key: CXF-6992
> URL: https://issues.apache.org/jira/browse/CXF-6992
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 3.1.5
> Reporter: Zoltan Farkas
> Assignee: Sergey Beryozkin
> Fix For: 3.2.0, 3.1.8, 3.0.11
>
>
> I have created a type: MyType<T>
> and registered a ParameterConverterProvider to serialize/de-serialize my type.
> when I use my type as in a JAX-RS as:
> {code}
> @QueryParam("qparam") List<MyType<Integer>>
> {code}
> end invoke the enpoint with:
> http://service/enpoint?qparam=abc&qparam=cde
> I get ParameterConverterProvider.getConverter(Integer.class,...) invoked
> instead of
> ParameterConverterProvider.getConverter(MyType.class,...)
> which does not look right to me, as such CXF tries to parse the qparam as Integer instead of MyType...
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)