Return-Path: Delivered-To: apmail-cocoon-cvs-archive@www.apache.org Received: (qmail 71295 invoked from network); 1 Nov 2004 14:58:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Nov 2004 14:58:45 -0000 Received: (qmail 93024 invoked by uid 500); 1 Nov 2004 14:58:44 -0000 Delivered-To: apmail-cocoon-cvs-archive@cocoon.apache.org Received: (qmail 92941 invoked by uid 500); 1 Nov 2004 14:58:43 -0000 Mailing-List: contact cvs-help@cocoon.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@cocoon.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cvs@cocoon.apache.org Received: (qmail 92930 invoked by uid 99); 1 Nov 2004 14:58:43 -0000 X-ASF-Spam-Status: No, hits=-10.0 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Mon, 01 Nov 2004 06:58:43 -0800 Received: (qmail 71238 invoked by uid 65534); 1 Nov 2004 14:58:42 -0000 Date: 1 Nov 2004 14:58:42 -0000 Message-ID: <20041101145842.71236.qmail@minotaur.apache.org> From: pier@apache.org To: cvs@cocoon.apache.org Subject: svn commit: rev 56236 - cocoon/whiteboard/kernel/src/org/apache/cocoon/kernel/runtime X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Author: pier Date: Mon Nov 1 06:58:41 2004 New Revision: 56236 Modified: cocoon/whiteboard/kernel/src/org/apache/cocoon/kernel/runtime/Wiring.java Log: Make sure exceptions target-exceptions are re-thrown and not wrapped Modified: cocoon/whiteboard/kernel/src/org/apache/cocoon/kernel/runtime/Wiring.java ============================================================================== --- cocoon/whiteboard/kernel/src/org/apache/cocoon/kernel/runtime/Wiring.java (original) +++ cocoon/whiteboard/kernel/src/org/apache/cocoon/kernel/runtime/Wiring.java Mon Nov 1 06:58:41 2004 @@ -13,6 +13,7 @@ package org.apache.cocoon.kernel.runtime; import java.lang.reflect.InvocationHandler; +import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; /** @@ -40,6 +41,12 @@ */ public Object invoke(Object proxy, Method method, Object[] parameters) throws Throwable { - return(method.invoke(null, parameters)); + try { + return(method.invoke(this.instance, parameters)); + } catch (InvocationTargetException e) { + Throwable cause = e.getCause(); + if (cause != null) throw cause; + throw e; + } } }