You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Valentin Valchev (JIRA)" <ji...@apache.org> on 2010/04/01 11:40:27 UTC

[jira] Created: (FELIX-2244) Bundles Printer fails when imports contains range.

Bundles Printer fails when imports contains range.
--------------------------------------------------

                 Key: FELIX-2244
                 URL: https://issues.apache.org/jira/browse/FELIX-2244
             Project: Felix
          Issue Type: Bug
          Components: Web Console
    Affects Versions: webconsole-3.0.0
            Reporter: Valentin Valchev


When a bundle contains import like that:

org.apache.felix.webconsole;version="[3.0,4.0)"

The bundles printer will throw exception because the parsing code in method:
private boolean isSatisfied( Clause imported, ExportedPackage exported )

always expects that the version is single version and not a range.
In that case an exception is thrown an no information about the package is shown.

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


[jira] Resolved: (FELIX-2244) Bundles Printer fails when imports contains range.

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

Felix Meschberger resolved FELIX-2244.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: webconsole-3.0.2
         Assignee: Felix Meschberger

Fixed in Rev. 930501 by assuming a VersionRange instead of a Version for the Import-Package header version attribute.

Note: I use the VersionRange implementation from the framework bundle because the implementation from the utils library has a dependency on Java 1.4 by using regular expression API.

> Bundles Printer fails when imports contains range.
> --------------------------------------------------
>
>                 Key: FELIX-2244
>                 URL: https://issues.apache.org/jira/browse/FELIX-2244
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>    Affects Versions: webconsole-3.0.0
>            Reporter: Valentin Valchev
>            Assignee: Felix Meschberger
>             Fix For: webconsole-3.0.2
>
>
> When a bundle contains import like that:
> org.apache.felix.webconsole;version="[3.0,4.0)"
> The bundles printer will throw exception because the parsing code in method:
> private boolean isSatisfied( Clause imported, ExportedPackage exported )
> always expects that the version is single version and not a range.
> In that case an exception is thrown an no information about the package is shown.

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