diff --git a/module-client/src/test/java/org/apache/http/impl/conn/ExecReqThread.java b/module-client/src/test/java/org/apache/http/impl/conn/ExecReqThread.java index 265071aaf..38fd6b0a0 100644 --- a/module-client/src/test/java/org/apache/http/impl/conn/ExecReqThread.java +++ b/module-client/src/test/java/org/apache/http/impl/conn/ExecReqThread.java @@ -50,9 +50,9 @@ import org.apache.http.util.EntityUtils; */ public class ExecReqThread extends GetConnThread { - protected RequestSpec request_spec; - protected HttpResponse response; - protected byte[] response_data; + protected RequestSpec request_spec; + protected volatile HttpResponse response; + protected volatile byte[] response_data; /** diff --git a/module-client/src/test/java/org/apache/http/impl/conn/GetConnThread.java b/module-client/src/test/java/org/apache/http/impl/conn/GetConnThread.java index 6da5f6211..9e98f4f2f 100644 --- a/module-client/src/test/java/org/apache/http/impl/conn/GetConnThread.java +++ b/module-client/src/test/java/org/apache/http/impl/conn/GetConnThread.java @@ -48,8 +48,8 @@ public class GetConnThread extends Thread { protected HttpRoute conn_route; protected long conn_timeout; - protected ManagedClientConnection connection; - protected Throwable exception; + protected volatile ManagedClientConnection connection; + protected volatile Throwable exception; /** * Creates a new thread. diff --git a/module-client/src/test/java/org/apache/http/impl/conn/tsccm/AwaitThread.java b/module-client/src/test/java/org/apache/http/impl/conn/tsccm/AwaitThread.java index 2e5c3510c..6a61259c6 100644 --- a/module-client/src/test/java/org/apache/http/impl/conn/tsccm/AwaitThread.java +++ b/module-client/src/test/java/org/apache/http/impl/conn/tsccm/AwaitThread.java @@ -44,8 +44,8 @@ public class AwaitThread extends Thread { protected Lock wait_lock; protected Date wait_deadline; - protected boolean waiting; - protected Throwable exception; + protected volatile boolean waiting; + protected volatile Throwable exception; /**