cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gena Ganebnyi (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CXF-3900) InjectionUtils do not handle correctly collections inside query bean
Date Thu, 10 Nov 2011 22:09:52 GMT
InjectionUtils do not handle correctly collections inside query bean
--------------------------------------------------------------------

                 Key: CXF-3900
                 URL: https://issues.apache.org/jira/browse/CXF-3900
             Project: CXF
          Issue Type: Bug
          Components: JAX-RS
    Affects Versions: 2.4.2
            Reporter: Gena Ganebnyi
             Fix For: 2.4.5


{code}
                } else if (isSupportedCollectionOrArray(value.getClass())) {
                    // ignoring arrrays for a moment
                    List<Object> theValues = null;
                    if (value.getClass().isArray()) {
                        theValues = Arrays.asList(value);
                    } else {
                        theValues = CastUtils.cast((List<?>)value);
                    }
                    values.put(propertyName, theValues);
                } else {
                    fillInValuesFromBean(value, propertyName, values);
                }
{code}
*theValues = CastUtils.cast((List<?>)value);* limits us to use only Lists in beans used
as query params, while any type of collection could be fine(Set for example).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message