From 08f6c248d0716a98504e28341c44704ab5f90821 Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Tue, 20 Jul 2010 04:36:08 +0000 Subject: Put back some code to use the InterfaceContractMapper to match interfaces, as the latest code which just looks for matching operation names breaks the support for dynamic interfaces. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@965721 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/tuscany/sca/core/assembly/impl/RuntimeEndpointImpl.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sandbox/sebastien/java/dynamic/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointImpl.java b/sandbox/sebastien/java/dynamic/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointImpl.java index fe9e437650..84404adf73 100644 --- a/sandbox/sebastien/java/dynamic/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointImpl.java +++ b/sandbox/sebastien/java/dynamic/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointImpl.java @@ -235,6 +235,10 @@ public class RuntimeEndpointImpl extends EndpointImpl implements RuntimeEndpoint invocationChainMap.put(operation, chain); return chain; } + if (interfaceContractMapper.isCompatible(operation, op, Compatibility.SUBSET)) { + invocationChainMap.put(operation, chain); + return chain; + } } else { // [rfeng] We need to run the compatibility check for local operations as they // can be overloaded -- cgit v1.2.3