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

Incorrect check for VOID type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-milestone2, 2.6.13, 2.7.10
    • None
    • Unknown

    Description

      There are multiple occurrences in CXF code base for both server and client side which incorrectly deals with VOID return type. For example:

      method.getReturnType() == Void.class

      This fails in case of primitive VOID:

      method.getReturnType() => void.class

      The correct way of checking for VOID is:

      method.getReturnType().equals(Void.TYPE)

      Attachments

        Activity

          People

            ay Akitoshi Yoshida
            yavalek Valentin Mayamsin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: