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.

Reply via email to