Fix OASIS test ASM_5012 - its ok to override a reference with multiplicity of zero-N with one-one or one-N

git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@805831 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
antelder 2009-08-19 15:09:49 +00:00
parent 21d52f1baa
commit 5cb9df5238

View file

@ -66,7 +66,7 @@ abstract class ReferenceConfigurationUtil {
if (definedMul != overridenMul) {
switch (definedMul) {
case ZERO_N:
return overridenMul == Multiplicity.ZERO_ONE;
return overridenMul == Multiplicity.ZERO_ONE || overridenMul == Multiplicity.ONE_ONE || overridenMul == Multiplicity.ONE_N;
case ONE_N:
return overridenMul == Multiplicity.ONE_ONE;
case ZERO_ONE: