Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 4000 invoked from network); 31 Oct 2008 17:16:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Oct 2008 17:16:46 -0000 Received: (qmail 46633 invoked by uid 500); 31 Oct 2008 17:16:51 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 46600 invoked by uid 500); 31 Oct 2008 17:16:51 -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 46589 invoked by uid 99); 31 Oct 2008 17:16:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Oct 2008 10:16:51 -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, 31 Oct 2008 17:15:33 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3BD90234C257 for ; Fri, 31 Oct 2008 10:15:44 -0700 (PDT) Message-ID: <1641966510.1225473344240.JavaMail.jira@brutus> Date: Fri, 31 Oct 2008 10:15:44 -0700 (PDT) From: "Richard S. Hall (JIRA)" To: dev@felix.apache.org Subject: [jira] Resolved: (FELIX-798) Current implementation of ServiceRegistration.getReference() does not follow the spec In-Reply-To: <1353482594.1225449944434.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-798?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard S. Hall resolved FELIX-798. ----------------------------------- Resolution: Fixed Stuart, I have applied your patch and fixed the other issue you raised. Please close this bug if you are satisfied. Thanks. > Current implementation of ServiceRegistration.getReference() does not follow the spec > ------------------------------------------------------------------------------------- > > Key: FELIX-798 > URL: https://issues.apache.org/jira/browse/FELIX-798 > Project: Felix > Issue Type: Bug > Components: Framework, Specification compliance > Affects Versions: felix-1.2.2 > Reporter: Stuart McCulloch > Assignee: Richard S. Hall > Fix For: felix-1.4.0 > > Attachments: FELIX-798.txt > > > According to the javadoc for getReference() it should throw an exception if the service is unregistered: > java.lang.IllegalStateException - If this ServiceRegistration object has already been unregistered. > see http://www.osgi.org/javadoc/r4v41/org/osgi/framework/ServiceRegistration.html#getReference() > However, the current ServiceRegistration implementation in Felix continues to return a valid reference > even after the service is unregistered (discovered this when working on service examples for the book) > I'll attach a patch for review. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.