Reverting changes from r829707 and setting different binding name on binding element to avoid name conflict

git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@829877 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
lresende 2009-10-26 17:47:39 +00:00
parent 9c319b4743
commit 58f3dfa30d

View file

@ -71,10 +71,6 @@ public class StructuralURIBuilderImpl implements CompositeBuilder {
Binding existed = bindingMap.put(binding.getName(), binding);
// Check that multiple bindings do not have the same name
if (existed != null && existed != binding) {
if(binding.getClass() != existed.getClass()) {
// Look for a binding of the same type
continue;
}
if (contract instanceof Service) {
Monitor.error(monitor, this, Messages.ASSEMBLY_VALIDATION, "MultipleBindingsForService", contract
.getName(), binding.getName());