summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/assembly/src/main
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-07-20 12:09:58 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-07-20 12:09:58 +0000
commit7bb63b9485b2c074883ece6ea34e5ac2d6e99363 (patch)
tree7344d046478f0880f389051da96d25f16c0c66be /sca-java-2.x/trunk/modules/assembly/src/main
parentdb736f9a82a1ae011fdb4d307745870aea3391f5 (diff)
Add a check for both source and target operations matching being oneway or not
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@965821 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/assembly/src/main')
-rw-r--r--sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/impl/InterfaceContractMapperImpl.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/impl/InterfaceContractMapperImpl.java b/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/impl/InterfaceContractMapperImpl.java
index 8efec798e2..eca4cde843 100644
--- a/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/impl/InterfaceContractMapperImpl.java
+++ b/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/impl/InterfaceContractMapperImpl.java
@@ -229,6 +229,16 @@ public class InterfaceContractMapperImpl implements InterfaceContractMapper {
return false;
}
+ if (source.isNonBlocking() != target.isNonBlocking()) {
+ if (audit != null){
+ audit.append("operations one-way not the same, source = " +
+ source.isNonBlocking() +
+ " target = " +
+ target.isNonBlocking());
+ }
+ return false;
+ }
+
boolean passByValue = (source.getInterface().isRemotable()) && byValue;
// if (source.getInterface().isRemotable()) {