Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-5538

Parameterized Types do not work on Exception Classes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.7.9
    • None
    • JAXB Databinding
    • None
    • Unknown

    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:

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

      This is what you get using fixes from CXF-4542

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

      Attachments

        1. JBPAPP-10650.patch
          4 kB
          mustafa

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mmusaji mustafa
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: