The implementation of
org.osgi.service.packageadmin.PackageAdmin#getExportedPackages(Bundle), does
not follow the spec.
-----------------------------------------------------------------------------------------------------------------------
Key: FELIX-3353
URL: https://issues.apache.org/jira/browse/FELIX-3353
Project: Felix
Issue Type: Bug
Components: Framework
Affects Versions: framework-4.0.2
Reporter: Yasuhiro Kawame
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)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira