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

Unable to register a generic _InvocationCallback<Object>_ when using the async proxy client API in JAX-RS

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.9, 3.2.0
    • Component/s: JAX-RS
    • Labels:
      None
    • Estimated Complexity:
      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

              • Assignee:
                sergey_beryozkin Sergey Beryozkin
                Reporter:
                jpoth John Poth
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: