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/09/02 23:15:04 UTC

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

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
            Priority: Minor
             Fix For: framework-3.2.0


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.


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

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

Richard S. Hall reassigned FELIX-2572:
--------------------------------------

    Assignee: Richard S. Hall

> 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.


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

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

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

    Attachment: jre-package-linux.txt

Example JRE metadata generated using BND.

> 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
>            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.


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

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

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

    Attachment: jre-package-mac.txt

Updated metadata example, since the original was missing some security-related packages.

> 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-mac.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.


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

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
    [ 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.


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

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12918154#action_12918154 ] 

Richard S. Hall commented on FELIX-2572:
----------------------------------------

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.


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

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

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

    Attachment:     (was: jre-package-linux.txt)

> 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
>
>
> 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.