You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Bertrand Delacretaz (JIRA)" <ji...@apache.org> on 2013/04/02 16:21:15 UTC

[jira] [Commented] (FELIX-3239) PackageAdmin#getExportedPackages does not work on packages exported by attached fragments

    [ https://issues.apache.org/jira/browse/FELIX-3239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13619840#comment-13619840 ] 

Bertrand Delacretaz commented on FELIX-3239:
--------------------------------------------

This used to work in 3.x versions (tested with 3.0.8 and 3.2.2) but does not in 4.0.1 or 4.0.2.

I have created a test at https://github.com/bdelacretaz/felix-fragment-tests, running "mvn clean test -Dfelix.version=4.0.2" at the top of that causes FragmentsTest.testPackageFromFragment to fail. 

The test is really simple, just calls getExportedPackage("ch.x42.felix.fragmenttests.fragment") where the ch.x42.felix.fragmenttests.fragment package is provided by the test's fragment-bundle which is attached to the test's host-bundle.

I haven't found a place in the Felix codebase to add such a test, that requires two test bundles.
                
> PackageAdmin#getExportedPackages does not work on packages exported by attached fragments
> -----------------------------------------------------------------------------------------
>
>                 Key: FELIX-3239
>                 URL: https://issues.apache.org/jira/browse/FELIX-3239
>             Project: Felix
>          Issue Type: Bug
>    Affects Versions: framework-4.0.1
>            Reporter: Guillaume Nodet
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira