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

Support void return types when using the async proxy-based client API

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • JAX-RS
    • None
    • Unknown

    Description

      It is currently impossible to register a generic InvocationCallback<Object> when invoking a method that returns void. This is due to a check that isn't satisfied when the methodReturnType is void. I propose to add the following case

      Object.class == callbackRespClass
      

      And let the user handle the logic.

      I also propose to remove the condition

      Response.class == callbackRespClass
      

      Which will lead to failure when casting to a return type upon completion. I will provide a PR.

      sergey_beryozkin sorry for the confusion.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jpoth John Poth
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: