diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-11-26 17:27:49 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-11-26 17:27:49 +0000 |
commit | ea16b5e9a260e41ad8be3c70fe954db9667a6561 (patch) | |
tree | e704e5053238c4485344c5e5977ab35901f61f2d /sca-java-2.x/trunk/modules | |
parent | f8451975bcde116fae6191e92cea0ac177281e1c (diff) |
Use IllegalArgumentException instead of ServiceRuntimeException to fix JCA_9001
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@884654 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules')
-rw-r--r-- | sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ComponentContextImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ComponentContextImpl.java b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ComponentContextImpl.java index 6839bc241b..c968599d36 100644 --- a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ComponentContextImpl.java +++ b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/ComponentContextImpl.java @@ -118,7 +118,7 @@ public class ComponentContextImpl implements RuntimeComponentContext { if (referenceName.equals(ref.getName())) { Multiplicity multiplicity = ref.getMultiplicity(); if (multiplicity == Multiplicity.ZERO_N || multiplicity == Multiplicity.ONE_N) { - throw new ServiceRuntimeException("Reference " + referenceName + throw new IllegalArgumentException("Reference " + referenceName + " has multiplicity " + multiplicity); } |