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>

    Details

    • Release Notes Text:
      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.
    • Release Notes Docs Status:
      Documented as Resolved Issue
    • Docs QE Status:
      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  klape Kyle Lape
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: