summaryrefslogtreecommitdiffstats
path: root/java/sca/modules/assembly/src/main
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-08-19 13:56:54 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-08-19 13:56:54 +0000
commit21d52f1baa9e57a73b9131ef88bd334ab5d67279 (patch)
tree52599a268d95c326a7d7242c57a6bc236da1ab2c /java/sca/modules/assembly/src/main
parentfda28189a011cfb409e952b62c3e55a77b6be2bc (diff)
Fix OASIS test ASM_5015 - its ok to override a reference with multiplicity zero-one with one-one
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@805808 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/assembly/src/main')
-rw-r--r--java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ReferenceConfigurationUtil.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ReferenceConfigurationUtil.java b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ReferenceConfigurationUtil.java
index fa5d42a71d..8f2c5be5dc 100644
--- a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ReferenceConfigurationUtil.java
+++ b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/ReferenceConfigurationUtil.java
@@ -69,6 +69,8 @@ abstract class ReferenceConfigurationUtil {
return overridenMul == Multiplicity.ZERO_ONE;
case ONE_N:
return overridenMul == Multiplicity.ONE_ONE;
+ case ZERO_ONE:
+ return overridenMul == Multiplicity.ONE_ONE;
default:
return false;
}