cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "mustafa (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CXF-5538) Parameterized Types do not work on Exception Classes
Date Tue, 04 Feb 2014 14:08:09 GMT
mustafa created CXF-5538:
----------------------------

             Summary: 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
    Affects Versions: 2.7.9
            Reporter: mustafa


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 JBPAPP-10566

{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.1.5#6160)

Mime
View raw message