[
https://issues.apache.org/jira/browse/CXF-5258?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kai Stapel updated CXF-5258:
----------------------------
Attachment: cfx-list-typed-type.zip
Attached sample maven (Eclipse) project which will show the problem when
running the server (e.g. in a Tomcat) and then executing the client
{{FooClient}}.
> Return type list of a typed type, e.g. List<Type<Typee>>, leads to
> ClassCastException
> -------------------------------------------------------------------------------------
>
> Key: CXF-5258
> URL: https://issues.apache.org/jira/browse/CXF-5258
> Project: CXF
> Issue Type: Bug
> Components: JAXB Databinding
> Affects Versions: 2.7.6
> Reporter: Kai Stapel
> Attachments: cfx-list-typed-type.zip
>
>
> If you use a list of a typed type as the return type (yes, a lot of types ;)
> ) in a CXF service you will get a
> {code}
> java.lang.ClassCastException: java.util.ArrayList cannot be cast to
> some.class.Name
> {code}
> exception.
> I attached a small example showing the problem for CXF 2.7.6.
> I'm not quite sure if this really is a CXF JAXBDatabinding problem or if it
> is caused by something else.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira