You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Richard S. Hall (JIRA)" <ji...@apache.org> on 2010/10/05 22:47:42 UTC

[jira] Issue Comment Edited: (FELIX-2572) JRE system packages should include "uses" constraints

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

Richard S. Hall edited comment on FELIX-2572 at 10/5/10 4:46 PM:
-----------------------------------------------------------------

I've taken the attached example JRE metadata and used it to create the system bundle exports. The resulting framework still passed the OSGi CT, our internal tests, and the GlassFish test suite. So, it definitely seems like we could do this, we just have to decide if we should.

It could definitely help in situations where bundles are trying to provide alternative versions of JRE supplied packages. This situation currently causes lots of issues since to the resolver system bundle packages look completely unconstrained since they lack all "uses" constraints.

I am leaning in favor of adding this metadata. Thoughts?


      was (Author: rickhall):
    I taken the attached example JRE metadata and used it to create the system bundle exports. The resulting framework still passed the OSGi CT, our internal tests, and the GlassFish test suite. So, it definitely seems like we could do this, we just have to decide if we should.

It could definitely help in situations where bundles are trying to provide alternative versions of JRE supplied packages. This situation currently causes lots of issues since to the resolver system bundle packages look completely unconstrained since they lack all "uses" constraints.

I am leaning in favor of adding this metadata. Thoughts?

  
> JRE system packages should include "uses" constraints
> -----------------------------------------------------
>
>                 Key: FELIX-2572
>                 URL: https://issues.apache.org/jira/browse/FELIX-2572
>             Project: Felix
>          Issue Type: Improvement
>          Components: Framework
>    Affects Versions: framework-3.0.2
>            Reporter: Richard S. Hall
>            Assignee: Richard S. Hall
>            Priority: Minor
>             Fix For: framework-3.2.0
>
>         Attachments: jre-package-linux.txt
>
>
> The framework is configured by default to export all JRE packages. Currently, this doesn't include "uses" constraints, which can lead to resolutions that result in execution-time issues (e.g., LinkageErrors) that are hard to diagnose. If we include "uses" constraints on the system packages, then we can avoid this. We should be able to use BND to generate this information.

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