You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by se...@apache.org on 2018/01/30 15:24:53 UTC

[cxf] branch 3.1.x-fixes updated: [CXF-7575] Adding the volatile qualifiers back

This is an automated email from the ASF dual-hosted git repository.

sergeyb pushed a commit to branch 3.1.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/3.1.x-fixes by this push:
     new 2c85fb5  [CXF-7575] Adding the volatile qualifiers back
2c85fb5 is described below

commit 2c85fb57c528813f92cf0f79166e59345237416d
Author: Sergey Beryozkin <sb...@gmail.com>
AuthorDate: Tue Jan 30 15:17:43 2018 +0000

    [CXF-7575] Adding the volatile qualifiers back
---
 .../main/java/org/apache/cxf/jaxrs/impl/AsyncResponseImpl.java | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/AsyncResponseImpl.java b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/AsyncResponseImpl.java
index 3650c04..ef167d2 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/AsyncResponseImpl.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/AsyncResponseImpl.java
@@ -50,11 +50,11 @@ public class AsyncResponseImpl implements AsyncResponse, ContinuationCallback {
     private Continuation cont;
     private Message inMessage;
     private TimeoutHandler timeoutHandler;
-    private boolean initialSuspend;
-    private boolean cancelled;
-    private boolean done;
-    private boolean resumedByApplication;
-    private Long pendingTimeout;
+    private volatile boolean initialSuspend;
+    private volatile boolean cancelled;
+    private volatile boolean done;
+    private volatile boolean resumedByApplication;
+    private volatile Long pendingTimeout;
 
     private List<CompletionCallback> completionCallbacks = new LinkedList<CompletionCallback>();
     private List<ConnectionCallback> connectionCallbacks = new LinkedList<ConnectionCallback>();

-- 
To stop receiving notification emails like this one, please contact
sergeyb@apache.org.