You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "German Vega (JIRA)" <ji...@apache.org> on 2008/05/07 09:47:56 UTC

[jira] Closed: (FELIX-540) Framework doesn't check obejct returned by ServiceFactory.getService(Bundle,ServiceRegistration)

     [ https://issues.apache.org/jira/browse/FELIX-540?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

German Vega closed FELIX-540.
-----------------------------


The corrected version succesfully passed the test, Thanks!

> Framework doesn't check obejct returned by ServiceFactory.getService(Bundle,ServiceRegistration)
> ------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-540
>                 URL: https://issues.apache.org/jira/browse/FELIX-540
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-1.0.3
>            Reporter: German Vega
>            Assignee: Karl Pauls
>            Priority: Critical
>             Fix For: felix-1.0.4
>
>         Attachments: Starter.java
>
>
> When the framework invokes ServiceFactory.getService() it doesn't check that the returned object is an instance of all the
> classes named when the service was registered, this check is explcitely stated in the specification:
> 6.1.20.1 public Object getService( Bundle bundle, ServiceRegistration registration )
> ....
> The Framework will check if the returned service object is an instance of all
> the classes named when the service was registered. If not, then null is
> returned to the bundle.
> Returns A service object that must be an instance of all the classes named when the
> service was registered.

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