diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2011-05-21 04:35:44 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2011-05-21 04:35:44 +0000 |
commit | 09fdc02e7a412927582fe8b46080b44b0d63ba35 (patch) | |
tree | ea0385c07e46d4a86ff253d93b868616979dd721 /sca-java-2.x/trunk/modules/binding-sca-runtime | |
parent | c34f78773a7696a06db1851389f292485e0e7ac9 (diff) |
Allows pass -by-reference for self references
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1125636 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-sca-runtime')
-rw-r--r-- | sca-java-2.x/trunk/modules/binding-sca-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/provider/RuntimeSCAReferenceBindingProvider.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-sca-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/provider/RuntimeSCAReferenceBindingProvider.java b/sca-java-2.x/trunk/modules/binding-sca-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/provider/RuntimeSCAReferenceBindingProvider.java index dc2337ef8d..122959d935 100644 --- a/sca-java-2.x/trunk/modules/binding-sca-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/provider/RuntimeSCAReferenceBindingProvider.java +++ b/sca-java-2.x/trunk/modules/binding-sca-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/provider/RuntimeSCAReferenceBindingProvider.java @@ -148,7 +148,9 @@ public class RuntimeSCAReferenceBindingProvider implements EndpointReferenceAsyn } else { Reference ref = epr.getReference().getReference(); // The spec says both ref and service needs to allowsPassByReference - boolean allowsPBR = (ref != null && ref.isAllowsPassByReference()) && chain.allowsPassByReference(); + boolean allowsPBR = + (epr.getReference().isAllowsPassByReference() || (ref != null && ref.isAllowsPassByReference())) && chain + .allowsPassByReference(); if (allowsPBR && interfaceContractMapper.isCompatibleByReference(operation, targetOp, |