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

The implementation of org.osgi.service.packageadmin.PackageAdmin#getExportedPackages(Bundle), does not follow the spec.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • framework-4.0.2
    • framework-4.2.0
    • Framework
    • None

    Description

      Spec says
      PackageAdmin#getExportedPackages(Bundle) returnes null, if the specified bundle has no exported packages.
      But this method returns "NOT null", under the following conditions:

      BundleA :
      Export-Package: p.a

      Bundle[] ba =

      { BundleA }

      1. uninstall BundleA.
      2. call org.osgi.service.packageadmin.PackageAdmin#refreshPackage(ba).
      3. call org.osgi.service.packageadmin.PackageAdmin#getExportedPackages(BundleA).

      I think BundleA has no exported packages, so PackageAdmin#getExportedPackages(BundleA) should returns null.

      see:
      http://www.osgi.org/javadoc/r4v43/org/osgi/service/packageadmin/PackageAdmin.html#getExportedPackages(org.osgi.framework.Bundle)

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: