Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-3411

The implementation of org.osgi.service.startlevel.StartLevel#setStartLevel(int) does not follow the spec

    XMLWordPrintableJSON

Details

    Description

      I think that the implementation of Changing the Active Start Level is different from Spec.

      see:
      OSGi Service Platform Core Specification Release 4, Version 4.3, Figure 8.2 page154

      Move to requested start level R, active level is A, B is a bundle's start level

      Spec:
      if (A < R)
      while (A < R)

      { A = A + 1 Start All bundles where B = A }

      Implementation:
      if (A < R)
      Start All bundles where B <= R
      A = R

      Similarly, if A > R.

      Javadoc:
      http://www.osgi.org/javadoc/r4v43/org/osgi/service/startlevel/StartLevel.html#setStartLevel%28int%29
      http://www.osgi.org/javadoc/r4v43/org/osgi/framework/startlevel/FrameworkStartLevel.html#setStartLevel(int, org.osgi.framework.FrameworkListener...)

      Attachments

        Activity

          People

            rickhall Richard S. Hall
            yasuk Yasuhiro Kawame
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: