cxf-issues mailing list archives

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

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

mustafa updated CXF-5538:
-------------------------

    Description: 
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}

  was:
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}


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

Mime
View raw message