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

Setter setBus in AbstractConfigurableProvider does nothing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.9
    • 3.1.14, 3.2.1
    • JAX-RS
    • None
    • Unknown

    Description

      Class AbstractConfigurableProvider defines the setBus setter like that :

          private Bus bus;
          
          /**
           * Sets the Bus
           * @param b
           */
          public void setBus(Bus b) {
              if (bus != null) {
                  bus = b;
              }
          }
      

      The bus field is initialized to null and is only modified in the setter above : the bus != null expression is always false and the bus cannot be set at all.

      I guess, the code should read :

          public void setBus(Bus b) {
              if (b != null) {
                  bus = b;
              }
          }
      

      Attachments

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            Siggen Manuel Siggen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: