cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zoltan Farkas (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CXF-6992) ParamConverterProvider invoked with wrong types
Date Thu, 04 Aug 2016 13:39:20 GMT
Zoltan Farkas created CXF-6992:
----------------------------------

             Summary: 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


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)

Mime
View raw message