Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-10650

Parameterized Types do not work on Exception Classes

XMLWordPrintable

    • This release of JBoss EAP 5 includes a fix to an issue where an Exception class used in a Web Service that used a Collection was always represented as the Collection type instead of the Paramatized Type in the generated WSDL.
    • Documented as Resolved Issue

      Fixes for CXF-4542 and CXF-4542 introduced this regression where an Exception class with a Collection was always represented as the Collection type instead of the Paramatized Type.

      Example:

      CustomException.java
      @WebFault
      public class CustomException extends Exception {
      private ArrayList<MyData> names;
      

      This is what you get using fixes from JBPAPP-10566

      <xs:complexType name="CustomException">
      <xs:sequence>
      <xs:element name="names" nillable="true" type="tns:arrayList"/>
      </xs:sequence>
      

      But it should be

      <xs:complexType name="CustomException">
      <xs:sequence>
      <xs:element maxOccurs="unbounded" minOccurs="0" name="names" type="tns:myData"/>
      </xs:sequence>
      

              rhn-support-mus Mustafa Musaji
              rhn-support-mus Mustafa Musaji
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: