Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-540

Framework doesn't check obejct returned by ServiceFactory.getService(Bundle,ServiceRegistration)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • framework-1.0.3
    • framework-1.0.4
    • Framework
    • None

    Description

      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.

      Attachments

        1. Starter.java
          2 kB
          German Vega

        Activity

          People

            karlpauls Karl Pauls
            gvega German Vega
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: