felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard S. Hall (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FELIX-3803) Bundle#getResource always try to resolve the bundle
Date Fri, 14 Dec 2012 16:30:13 GMT

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

Richard S. Hall commented on FELIX-3803:

I assume the issue here is to avoid grabbing the global lock?

I think in the past the INSTALLED check was done in the resolver back when it was a single
root (i.e., one bundle at a time) resolver. I guess we sort of lost that check when we moved
to a multi-root resolve approach in 4.0.

Putting a check back in probably makes sense, but we should probably do it in Felix.resolveBundleRevision()
since that is used from multiple places, so they could all benefit.
> Bundle#getResource always try to resolve the bundle
> ---------------------------------------------------
>                 Key: FELIX-3803
>                 URL: https://issues.apache.org/jira/browse/FELIX-3803
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>             Fix For: framework-4.2.0
> I think the behavior should be similar to Bundle#loadClass, i.e. only try to resolve
the bundle if the bundle is in the INSTALLED state.  The spec says:  "If this bundle’s state
is INSTALLED, this method must attempt to resolve this bundle before attempting to get the
specified resource. "

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message