summaryrefslogtreecommitdiffstats
path: root/java/sca
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-08-03 13:13:10 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-08-03 13:13:10 +0000
commitd63ee83f1f241c43bc159a54fac24946bf43a85d (patch)
tree223a1698509867780dd5dfb376fbc05e2eb2fe63 /java/sca
parent77d62d152b3a849d188e337fdb357f8dda2be773 (diff)
Test for unique binding names across a service's bindings. Not just the bindings of the same type. Raise an error if the binding names are not unique. Required for ASM_9002.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@800351 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca')
-rw-r--r--java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/CompositeBindingURIBuilderImpl.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/CompositeBindingURIBuilderImpl.java b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/CompositeBindingURIBuilderImpl.java
index e15270911b..e2389c28b2 100644
--- a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/CompositeBindingURIBuilderImpl.java
+++ b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/CompositeBindingURIBuilderImpl.java
@@ -312,12 +312,9 @@ public class CompositeBindingURIBuilderImpl extends BaseBuilderImpl implements C
// Skip the current binding
continue;
}
- if (!binding.getType().equals(otherBinding.getType())) {
- // Look for a binding of the same type
- continue;
- }
+
if (binding.getName().equals(otherBinding.getName())) {
- warning(monitor, contract instanceof Service ? "MultipleBindingsForService"
+ error(monitor, contract instanceof Service ? "MultipleBindingsForService"
: "MultipleBindingsForReference", binding, contract.getName(), binding.getName());
}
}