Return-Path: X-Original-To: apmail-felix-dev-archive@www.apache.org Delivered-To: apmail-felix-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B2A7711A1D for ; Thu, 7 Aug 2014 09:06:12 +0000 (UTC) Received: (qmail 74312 invoked by uid 500); 7 Aug 2014 09:06:12 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 74144 invoked by uid 500); 7 Aug 2014 09:06:12 -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 73915 invoked by uid 99); 7 Aug 2014 09:06:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Aug 2014 09:06:12 +0000 Date: Thu, 7 Aug 2014 09:06:12 +0000 (UTC) From: "Pierre De Rop (JIRA)" To: dev@felix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (FELIX-4602) TemporalServiceDependency does not properly propagate RuntimeExceptions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FELIX-4602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pierre De Rop resolved FELIX-4602. ---------------------------------- Resolution: Fixed commited the proposed patch in rv 1616445 (in the felix sandbox), and also adapter the org.apache.felix.dm.itest/src/org/apache/felix/dm/itest/TemporalServiceDependencyTest.java testcase. Sean, now, we'll do our best to quickly move this new DM 4.0.0 version from the sandbox to the felix-trunk. for now, you can build this new DM 4.0.0 version from the sandbox (it's a bndtools-only project, so you have to install the latest bndtools before importing dm 4.0.0 into eclipse). thanks; > TemporalServiceDependency does not properly propagate RuntimeExceptions > ----------------------------------------------------------------------- > > Key: FELIX-4602 > URL: https://issues.apache.org/jira/browse/FELIX-4602 > Project: Felix > Issue Type: Bug > Components: Dependency Manager > Affects Versions: dependencymanager-3.2.0 > Reporter: Sean Rohead > Assignee: Pierre De Rop > Labels: easyfix > Fix For: dependencymanager-4.0.0 > > Attachments: TemporalServiceDependencyImpl.java.patch > > > I have a service that throws subclasses of RuntimeException from some of it's methods. When wrapped in a TemporalServiceDependency, these calls throw UndeclaredThrowableException instead. > The fix is quite simple: > Wrap TemporalServiceDependencyImpl lines 182-188 in the following try/catch block: > try { > ... > } > catch (InvocationTargetException e) { > throw e.getTargetException(); > } -- This message was sent by Atlassian JIRA (v6.2#6252)