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

MockBundleContext.getServiceReference(...) does not return service reference with highest ranking

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Testing OSGi Mock 2.0.2
    • Testing OSGi Mock 2.0.4
    • Testing
    • None

    Description

      According to https://osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html#getServiceReference%28java.lang.Class%29 the service reference being returned must be the one with the highest ranking. Currently it returns just any service reference.

      Attachments

        Issue Links

          Activity

            People

              sseifert Stefan Seifert
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: