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 2008/09/24 23:03:44 UTC
[jira] Created: (FELIX-736) Resolver does not correctly discard
export when module imports the same package
Resolver does not correctly discard export when module imports the same package
-------------------------------------------------------------------------------
Key: FELIX-736
URL: https://issues.apache.org/jira/browse/FELIX-736
Project: Felix
Issue Type: Bug
Components: Framework, Specification compliance
Affects Versions: felix-1.2.1
Reporter: Richard S. Hall
Assignee: Richard S. Hall
Fix For: felix-1.2.2
If a module both imports and exports the same package, this means the resolver has a choice to honor either the export or the import of the package. In the case where the resolve decides to honor the import, then the module's export for that same package is effectively discarded. Unfortunately, the resolver was not actually discarding the export in this case, so it is possible that another module might be wired to the effectively discarded export, even though the exporting module is importing the package from another provider. This results in some form of a re-export of the package, which is not spec compliant. We need to modify the resolver to check for this case.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (FELIX-736) Resolver does not correctly discard
export when module imports the same package
Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Richard S. Hall closed FELIX-736.
---------------------------------
Resolution: Fixed
I have applied a patch to address this issue so I will close it, but there is still a related issue for which I will open a new issue.
> Resolver does not correctly discard export when module imports the same package
> -------------------------------------------------------------------------------
>
> Key: FELIX-736
> URL: https://issues.apache.org/jira/browse/FELIX-736
> Project: Felix
> Issue Type: Bug
> Components: Framework, Specification compliance
> Affects Versions: felix-1.2.1
> Reporter: Richard S. Hall
> Assignee: Richard S. Hall
> Fix For: felix-1.2.2
>
>
> If a module both imports and exports the same package, this means the resolver has a choice to honor either the export or the import of the package. In the case where the resolve decides to honor the import, then the module's export for that same package is effectively discarded. Unfortunately, the resolver was not actually discarding the export in this case, so it is possible that another module might be wired to the effectively discarded export, even though the exporting module is importing the package from another provider. This results in some form of a re-export of the package, which is not spec compliant. We need to modify the resolver to check for this case.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.