diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-10-15 14:36:25 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-10-15 14:36:25 +0000 |
commit | 00bbbec5607c9f354d0b8a77e761d9a1116df8ef (patch) | |
tree | 3e9e7885eb8ac8e8d665b9a5a4ff72b05d801a84 /java/sca/modules | |
parent | 0ebfb2211876d9aa6cffa5db8b89332aea99ad04 (diff) |
Fix JCA9001 testcase by not wrapping runtime exceptions in a ServiceRuntimException
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@825508 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules')
-rw-r--r-- | java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ComponentContextImpl.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ComponentContextImpl.java b/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ComponentContextImpl.java index d1bec6285c..4e71181747 100644 --- a/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ComponentContextImpl.java +++ b/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ComponentContextImpl.java @@ -135,6 +135,9 @@ public class ComponentContextImpl implements RuntimeComponentContext { } catch (ServiceRuntimeException e) { throw e; } catch (Exception e) { + if (e instanceof RuntimeException) { + throw (RuntimeException)e; + } throw new ServiceRuntimeException(e.getMessage(), e); } } |