summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/implementation-java-runtime
diff options
context:
space:
mode:
authoredwardsmj <edwardsmj@13f79535-47bb-0310-9956-ffa450edef68>2010-06-29 16:57:02 +0000
committeredwardsmj <edwardsmj@13f79535-47bb-0310-9956-ffa450edef68>2010-06-29 16:57:02 +0000
commit1ae654ebbf996733be28ab6e20add17c44b98523 (patch)
treef8ca6ea56416009874e382f506968ee2480a59a6 /sca-java-2.x/trunk/modules/implementation-java-runtime
parent2756a41fb6b91c004ebb488d11cbfbcd171d4973 (diff)
Adding "volatile" to 2 fields shared between threads in ResponseDispatchImpl to avoid any possible asynchronous errors
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@959030 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--sca-java-2.x/trunk/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/ResponseDispatchImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/sca-java-2.x/trunk/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/ResponseDispatchImpl.java b/sca-java-2.x/trunk/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/ResponseDispatchImpl.java
index 8cb371f2b9..ea23f06ab5 100644
--- a/sca-java-2.x/trunk/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/ResponseDispatchImpl.java
+++ b/sca-java-2.x/trunk/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/ResponseDispatchImpl.java
@@ -54,8 +54,8 @@ public class ResponseDispatchImpl<T> implements ResponseDispatch<T>, Serializabl
private final Condition completed = lock.newCondition();
// The result
- private T response = null;
- private Throwable fault = null;
+ private volatile T response = null;
+ private volatile Throwable fault = null;
public ResponseDispatchImpl( ) {
super();