You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Sahoo (JIRA)" <ji...@apache.org> on 2009/04/27 06:47:30 UTC

[jira] Created: (FELIX-1059) DynamicImport-Package matches more packages than desired

DynamicImport-Package matches more packages than desired
--------------------------------------------------------

                 Key: FELIX-1059
                 URL: https://issues.apache.org/jira/browse/FELIX-1059
             Project: Felix
          Issue Type: Bug
          Components: Framework
    Affects Versions: felix-1.6.0
         Environment: generic
            Reporter: Sahoo
             Fix For: felix-1.6.1


Using * in DynamicImport-Package results in more packages being imported than desired. I have a bundle which has the following manifest attributes:

Bundle 2
--------
DynamicImport-Package = javax.crypto.interfaces.*
Import-Package = org.osgi.framework
Bundle-SymbolicName = foo
Bundle-Activator = sahoo.Activator

Question is should javax.crypto.interfaces.* match javax.crypto.interfaces package or not? Felix 1.6.0 seems to match it as the following shell command output confirms:

-> imports 2
foo [2] imports:
----------------
org.osgi.framework; version=1.4.0 -> org.apache.felix.framework [0]
javax.crypto.interfaces; version=1.6.0 -> org.apache.felix.framework [0]

It seems like similar to bootdelegation bug: https://issues.apache.org/jira/browse/FELIX-1034.

The RI behaves differently.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (FELIX-1059) DynamicImport-Package matches more packages than desired

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

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

    Fix Version/s:     (was: felix-1.6.1)
                   felix-1.8.0

> DynamicImport-Package matches more packages than desired
> --------------------------------------------------------
>
>                 Key: FELIX-1059
>                 URL: https://issues.apache.org/jira/browse/FELIX-1059
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-1.6.0
>         Environment: generic
>            Reporter: Sahoo
>             Fix For: felix-1.8.0
>
>         Attachments: FELIX-1059.zip
>
>
> Using * in DynamicImport-Package results in more packages being imported than desired. I have a bundle which has the following manifest attributes:
> Bundle 2
> --------
> DynamicImport-Package = javax.crypto.interfaces.*
> Import-Package = org.osgi.framework
> Bundle-SymbolicName = foo
> Bundle-Activator = sahoo.Activator
> Question is should javax.crypto.interfaces.* match javax.crypto.interfaces package or not? Felix 1.6.0 seems to match it as the following shell command output confirms:
> -> imports 2
> foo [2] imports:
> ----------------
> org.osgi.framework; version=1.4.0 -> org.apache.felix.framework [0]
> javax.crypto.interfaces; version=1.6.0 -> org.apache.felix.framework [0]
> It seems like similar to bootdelegation bug: https://issues.apache.org/jira/browse/FELIX-1034.
> The RI behaves differently.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (FELIX-1059) DynamicImport-Package matches more packages than desired

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

Richard S. Hall resolved FELIX-1059.
------------------------------------

    Resolution: Fixed
      Assignee: Richard S. Hall

I have committed a fix for this, please close if you are satisfied. Thanks.

> DynamicImport-Package matches more packages than desired
> --------------------------------------------------------
>
>                 Key: FELIX-1059
>                 URL: https://issues.apache.org/jira/browse/FELIX-1059
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework, Specification compliance
>    Affects Versions: felix-1.6.0
>         Environment: generic
>            Reporter: Sahoo
>            Assignee: Richard S. Hall
>             Fix For: felix-1.8.0
>
>         Attachments: FELIX-1059.zip
>
>
> Using * in DynamicImport-Package results in more packages being imported than desired. I have a bundle which has the following manifest attributes:
> Bundle 2
> --------
> DynamicImport-Package = javax.crypto.interfaces.*
> Import-Package = org.osgi.framework
> Bundle-SymbolicName = foo
> Bundle-Activator = sahoo.Activator
> Question is should javax.crypto.interfaces.* match javax.crypto.interfaces package or not? Felix 1.6.0 seems to match it as the following shell command output confirms:
> -> imports 2
> foo [2] imports:
> ----------------
> org.osgi.framework; version=1.4.0 -> org.apache.felix.framework [0]
> javax.crypto.interfaces; version=1.6.0 -> org.apache.felix.framework [0]
> It seems like similar to bootdelegation bug: https://issues.apache.org/jira/browse/FELIX-1034.
> The RI behaves differently.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (FELIX-1059) DynamicImport-Package matches more packages than desired

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

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

    Component/s: Specification compliance

> DynamicImport-Package matches more packages than desired
> --------------------------------------------------------
>
>                 Key: FELIX-1059
>                 URL: https://issues.apache.org/jira/browse/FELIX-1059
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework, Specification compliance
>    Affects Versions: felix-1.6.0
>         Environment: generic
>            Reporter: Sahoo
>             Fix For: felix-1.8.0
>
>         Attachments: FELIX-1059.zip
>
>
> Using * in DynamicImport-Package results in more packages being imported than desired. I have a bundle which has the following manifest attributes:
> Bundle 2
> --------
> DynamicImport-Package = javax.crypto.interfaces.*
> Import-Package = org.osgi.framework
> Bundle-SymbolicName = foo
> Bundle-Activator = sahoo.Activator
> Question is should javax.crypto.interfaces.* match javax.crypto.interfaces package or not? Felix 1.6.0 seems to match it as the following shell command output confirms:
> -> imports 2
> foo [2] imports:
> ----------------
> org.osgi.framework; version=1.4.0 -> org.apache.felix.framework [0]
> javax.crypto.interfaces; version=1.6.0 -> org.apache.felix.framework [0]
> It seems like similar to bootdelegation bug: https://issues.apache.org/jira/browse/FELIX-1034.
> The RI behaves differently.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (FELIX-1059) DynamicImport-Package matches more packages than desired

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

Sahoo updated FELIX-1059:
-------------------------

    Attachment: FELIX-1059.zip

Test case. Unzip and use the jar file. The source code is also there.

> DynamicImport-Package matches more packages than desired
> --------------------------------------------------------
>
>                 Key: FELIX-1059
>                 URL: https://issues.apache.org/jira/browse/FELIX-1059
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-1.6.0
>         Environment: generic
>            Reporter: Sahoo
>             Fix For: felix-1.6.1
>
>         Attachments: FELIX-1059.zip
>
>
> Using * in DynamicImport-Package results in more packages being imported than desired. I have a bundle which has the following manifest attributes:
> Bundle 2
> --------
> DynamicImport-Package = javax.crypto.interfaces.*
> Import-Package = org.osgi.framework
> Bundle-SymbolicName = foo
> Bundle-Activator = sahoo.Activator
> Question is should javax.crypto.interfaces.* match javax.crypto.interfaces package or not? Felix 1.6.0 seems to match it as the following shell command output confirms:
> -> imports 2
> foo [2] imports:
> ----------------
> org.osgi.framework; version=1.4.0 -> org.apache.felix.framework [0]
> javax.crypto.interfaces; version=1.6.0 -> org.apache.felix.framework [0]
> It seems like similar to bootdelegation bug: https://issues.apache.org/jira/browse/FELIX-1034.
> The RI behaves differently.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.