summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/binding-sca-runtime/src
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2011-02-07 23:09:03 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2011-02-07 23:09:03 +0000
commit3cb164dea51add6d6c26210bc6fa58ab8f098cfe (patch)
treef14f8005b64608d31c9fa9e97bb003ac39856ffc /sca-java-2.x/trunk/modules/binding-sca-runtime/src
parent1288834480c8b3e074bb65284ef2db0ee64f9e28 (diff)
Finalize the AllowsPassByReference support and add test cases
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1068211 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-sca-runtime/src')
-rw-r--r--sca-java-2.x/trunk/modules/binding-sca-runtime/src/main/java/org/apache/tuscany/sca/binding/sca/provider/RuntimeSCAReferenceBindingProvider.java3
1 files changed, 2 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 3d159fcae7..36ae886b46 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
@@ -146,7 +146,8 @@ public class RuntimeSCAReferenceBindingProvider implements EndpointReferenceAsyn
}
} else {
Reference ref = epr.getReference().getReference();
- boolean allowsPBR = (ref != null && ref.isAllowsPassByReference()) || chain.allowsPassByReference();
+ // The spec says both ref and service needs to allowsPassByReference
+ boolean allowsPBR = (ref != null && ref.isAllowsPassByReference()) && chain.allowsPassByReference();
if (allowsPBR && interfaceContractMapper.isCompatibleByReference(operation,
targetOp,