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

JAXBDataBinding can not handle the exception with generic objects like ObjectWithGenerics<Boolean, Integer>

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • EAP_EWP 5.3.0.ER1
    • EAP_EWP 5.2.0
    • Web Services
    • None
    • Exceptions annotated with @WebFault and included parameterized types like Pair&lt;Integer, Boolean&gt; would not be represented correctly in the WSDL schema. This change corrects the behavior of CXF so the schema is generated properly.
    • Documented as Resolved Issue
    • NEW

    Description

      When the Exception has some generics object like:

      @javax.xml.ws.WebFault
      public class GenericsException extends Exception {
          private static final long serialVersionUID = 1L;
          private ObjectWithGenerics<Boolean, Integer> obj;
      
          public ObjectWithGenerics<Boolean, Integer> getObj() {
              return obj;
          }
          public void setObj(ObjectWithGenerics<Boolean, Integer> obj) {
              this.obj = obj;
          }
      }
      

      Both the WSDL generated from the exception class is wrong and soap fault message is not expected.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rh-ee-klape Kyle Lape
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: