[ 
https://issues.apache.org/jira/browse/CXF-5538?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Kulp updated CXF-5538:
-----------------------------
    Component/s: JAXB Databinding

> Parameterized Types do not work on Exception Classes
> ----------------------------------------------------
>
>                 Key: CXF-5538
>                 URL: https://issues.apache.org/jira/browse/CXF-5538
>             Project: CXF
>          Issue Type: Bug
>          Components: JAXB Databinding
>    Affects Versions: 2.7.9
>            Reporter: mustafa
>         Attachments: JBPAPP-10650.patch
>
>
> As part of the fix CXF-4542 we believe introduced this regression where an 
> Exception class with a Collection was always represented as the Collection 
> type instead of the Paramatized Type.
> Example:
> {code:title=CustomException.java|borderStyle=solid}
> @WebFault
> public class CustomException extends Exception {
> private ArrayList<MyData> names;
> {code}
> This is what you get using fixes from CXF-4542
> {code:xml}
> <xs:complexType name="CustomException">
> <xs:sequence>
> <xs:element name="names" nillable="true" type="tns:arrayList"/>
> </xs:sequence>
> {code}
> But it should be
> {code:xml}
> <xs:complexType name="CustomException">
> <xs:sequence>
> <xs:element maxOccurs="unbounded" minOccurs="0" name="names" 
> type="tns:myData"/>
> </xs:sequence>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to