You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2010/02/25 17:52:27 UTC

[jira] Commented: (FELIX-2138) The resolver sometimes fails to resolve against local resources

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

Guillaume Nodet commented on FELIX-2138:
----------------------------------------

Even with this change, the resolution output is still very bad in some cases.

The problem is that the resolution tends to not favor required resources to optional resources which then lead to more resources being considered requried.

> The resolver sometimes fails to resolve against local resources
> ---------------------------------------------------------------
>
>                 Key: FELIX-2138
>                 URL: https://issues.apache.org/jira/browse/FELIX-2138
>             Project: Felix
>          Issue Type: Bug
>          Components: Bundle Repository (OBR)
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>             Fix For: bundlerepository-1.6.0
>
>
> When looking for resources matching a requirement, there is this test:
>             // We don't need to look at resources we've already looked at.
>             if (!m_failedSet.contains(resources[resIdx])
>                 && !m_resolveSet.contains(resources[resIdx]))
>             {
> Unfortunately, it's wrong because the m_resolveSet may have changed since the call to searchResolvingResources() so we can't ignore already resolved resources here.

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