From 1ae654ebbf996733be28ab6e20add17c44b98523 Mon Sep 17 00:00:00 2001 From: edwardsmj Date: Tue, 29 Jun 2010 16:57:02 +0000 Subject: 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 --- .../sca/implementation/java/invocation/ResponseDispatchImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sca-java-2.x/trunk/modules/implementation-java-runtime/src/main') 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 implements ResponseDispatch, 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(); -- cgit v1.2.3