You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Yasuhiro Kawame (Created) (JIRA)" <ji...@apache.org> on 2012/02/15 08:13:59 UTC

[jira] [Created] (FELIX-3353) The implementation of org.osgi.service.packageadmin.PackageAdmin#getExportedPackages(Bundle), does not follow the spec.

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

        

[jira] [Updated] (FELIX-3353) The implementation of org.osgi.service.packageadmin.PackageAdmin#getExportedPackages(Bundle), does not follow the spec.

Posted by "Richard S. Hall (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-3353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard S. Hall updated FELIX-3353:
-----------------------------------

    Fix Version/s: framework-4.2.0
    
> 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
>             Fix For: framework-4.2.0
>
>
> 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

        

[jira] [Closed] (FELIX-3353) The implementation of org.osgi.service.packageadmin.PackageAdmin#getExportedPackages(Bundle), does not follow the spec.

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-3353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard S. Hall closed FELIX-3353.
----------------------------------

    Resolution: Fixed
      Assignee: Richard S. Hall

Done. Thanks.
                
> 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
>            Assignee: Richard S. Hall
>             Fix For: framework-4.2.0
>
>
> 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