Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-5828

Support multi-valued Constants.SERVICE_PID

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • General
    • None

    Description

      As shown by SLING-5827 it is possible for the Constants.SERVICE_PID property of an OSGi service to be an array or a Collection of String.

      Quoting [1], The value of this property must be of type String, String[], or Collection of String.

      We have several places in our code that assume the value to be just a String, I'll attach an initial list and confirm on our dev list that we need to fix them.

      [1] https://osgi.org/javadoc/r4v43/core/org/osgi/framework/Constants.html#SERVICE_PID

      Attachments

        1. string-pid.txt
          2 kB
          Bertrand Delacretaz

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bdelacretaz Bertrand Delacretaz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: