You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "mustafa (JIRA)" <ji...@apache.org> on 2014/02/04 15:08:09 UTC
[jira] [Created] (CXF-5538) Parameterized Types do not work on
Exception Classes
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)