[ 
https://issues.apache.org/jira/browse/CXF-1558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12593396#action_12593396
 ] 

Daniel Kulp commented on CXF-1558:
----------------------------------


Very interesting.   I didn't even think Set was an allowed JAXB type.   I 
though the only collection type that was supported was List.   In order to do 
Sets, I though you had to write an XmlJavaTypeAdapter like you need to do for 
Maps.  

Anyway, I've fixed the problem.   Once apache's svn is fixed, I'll get it 
committed.

> Webservice method returning a Set results in  java.lang.ClassCastException: 
> java.util.LinkedHashSet cannot be cast to java.util.List
> ------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-1558
>                 URL: https://issues.apache.org/jira/browse/CXF-1558
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.1
>         Environment: Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_03-b05, 
> mixed mode)
> jaxb-api-2.1.jar, jaxb-impl-2.1.6.jar, asm-2.2.3.jar
>            Reporter: Martijn Brinkers
>             Fix For: 2.1.1, 2.0.7
>
>         Attachments: cxf-classcast-bug.tar.gz
>
>
> A webservice method that returns a Set results in 
> java.lang.ClassCastException: java.util.LinkedHashSet cannot be cast to 
> java.util.List. 
> The problem seems related to asm because when asm is removed from the 
> classpath the exception does not occur.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to