You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Karl Pauls (JIRA)" <ji...@apache.org> on 2006/05/03 18:15:47 UTC
[jira] Resolved: (FELIX-66) BundleContext must throw an
IllegalStateException if used and the bundle is not in either one of the
STARTING, STOPPING, or ACTIVE state
[ http://issues.apache.org/jira/browse/FELIX-66?page=all ]
Karl Pauls resolved FELIX-66:
-----------------------------
Fix Version: 0.8.0
Resolution: Fixed
I resolved the issue in svn commit: r399344. All methods of BundleContextImpl now throw an IllegalStateException if not in either of the STARTING, STOPPING, or ACTIVE state (as per spec).
> BundleContext must throw an IllegalStateException if used and the bundle is not in either one of the STARTING, STOPPING, or ACTIVE state
> ----------------------------------------------------------------------------------------------------------------------------------------
>
> Key: FELIX-66
> URL: http://issues.apache.org/jira/browse/FELIX-66
> Project: Felix
> Type: Task
> Components: Framework
> Reporter: Karl Pauls
> Assignee: Karl Pauls
> Fix For: 0.8.0
>
> From the javadoc of org.osgi.framework.BundleContext:
> --
> The BundleContext object is only valid during the execution of
> its context bundle; that is, during the period from when the context bundle
> is in the STARTING, STOPPING, and
> ACTIVE bundle states. If the BundleContext
> object is used subsequently, an IllegalStateException must be
> thrown.
> --
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira