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

org.apache.cxf.jaxws.interceptors.WrapperClassInInterceptor.handleMessage(Message) contains cruft code

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.2
    • 2.3.7, 2.4.3
    • JAX-WS Runtime
    • None
    • Unknown

    Description

      While debugging our server, in org.apache.cxf.jaxws.interceptors.WrapperClassInInterceptor.handleMessage(Message) I saw:

                  MessageContentsList lst = MessageContentsList.getContentsList(message);
                  if (lst == null) {
                      return;
                  }
                  if (lst != null) {
                      message.put(MessageInfo.class, messageInfo);
                      message.put(BindingMessageInfo.class, bmi);
                      ex.put(BindingOperationInfo.class, boi2);
                      ex.put(OperationInfo.class, op);
                  }
      

      Offering patch to redo as:

                  MessageContentsList lst = MessageContentsList.getContentsList(message);
                  if (lst == null) {
                      return;
                  }
                  message.put(MessageInfo.class, messageInfo);
                  message.put(BindingMessageInfo.class, bmi);
                  ex.put(BindingOperationInfo.class, boi2);
                  ex.put(OperationInfo.class, op);
      

      Attachments

        1. WrapperClassInInterceptor.diff
          0.9 kB
          Gary D. Gregory

        Activity

          People

            dkulp Daniel Kulp
            ggregory Gary D. Gregory
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: