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