Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 53599 invoked from network); 18 Apr 2008 08:08:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Apr 2008 08:08:39 -0000 Received: (qmail 27732 invoked by uid 500); 18 Apr 2008 08:08:39 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 27686 invoked by uid 500); 18 Apr 2008 08:08:39 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 27677 invoked by uid 99); 18 Apr 2008 08:08:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Apr 2008 01:08:39 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Apr 2008 08:07:55 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7FE37234C0DD for ; Fri, 18 Apr 2008 01:05:26 -0700 (PDT) Message-ID: <48368314.1208505926509.JavaMail.jira@brutus> Date: Fri, 18 Apr 2008 01:05:26 -0700 (PDT) From: "German Vega (JIRA)" To: dev@felix.apache.org Subject: [jira] Updated: (FELIX-540) Framework doesn't check obejct returned by ServiceFactory.getService(Bundle,ServiceRegistration) In-Reply-To: <174198327.1208505683171.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FELIX-540?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] German Vega updated FELIX-540: ------------------------------ Attachment: Starter.java Here is a simple test case showing the problem > 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 > Priority: Critical > 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.