Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 26129 invoked from network); 12 Jul 2010 16:34:46 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Jul 2010 16:34:46 -0000 Received: (qmail 55774 invoked by uid 500); 12 Jul 2010 16:34:45 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 55709 invoked by uid 500); 12 Jul 2010 16:34:45 -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 55701 invoked by uid 99); 12 Jul 2010 16:34:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jul 2010 16:34:44 +0000 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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jul 2010 16:34:42 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o6CGQpvl008070 for ; Mon, 12 Jul 2010 16:26:51 GMT Message-ID: <8150273.327181278952010982.JavaMail.jira@thor> Date: Mon, 12 Jul 2010 12:26:50 -0400 (EDT) From: "Clement Escoffier (JIRA)" To: dev@felix.apache.org Subject: [jira] Commented: (FELIX-2472) [iPOJO] Proxies should throw the OSGi service exception In-Reply-To: <20185923.325841278945410004.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FELIX-2472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12887408#action_12887408 ] Clement Escoffier commented on FELIX-2472: ------------------------------------------ To avoid to be tied to osgi 4.2 (and so breaking the osgi 4.0 compatibility), I will use a 'plain' runtime exception instead of a service exception. > [iPOJO] Proxies should throw the OSGi service exception > ------------------------------------------------------- > > Key: FELIX-2472 > URL: https://issues.apache.org/jira/browse/FELIX-2472 > Project: Felix > Issue Type: Improvement > Components: iPOJO > Affects Versions: iPOJO-1.6.0 > Reporter: Richard S. Hall > Assignee: Clement Escoffier > > In iPOJO proxies, if you disable null objects and then access a proxy with a missing service, you will receive an NPE. It would probably make more sense to throw the OSGi ServiceException perhaps with the type UNREGISTERED. Likely this also applies to temporal dependencies as well. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.