Author: markt
Date: Thu Jan 24 10:18:28 2013
New Revision: 1437930

URL: http://svn.apache.org/viewvc?rev=1437930&view=rev
Log:
Make sure changes to messages are visible to all threads.

Modified:
    tomcat/trunk/test/org/apache/tomcat/websocket/TestWsWebSocketContainer.java

Modified: 
tomcat/trunk/test/org/apache/tomcat/websocket/TestWsWebSocketContainer.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/tomcat/websocket/TestWsWebSocketContainer.java?rev=1437930&r1=1437929&r2=1437930&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/tomcat/websocket/TestWsWebSocketContainer.java 
(original)
+++ tomcat/trunk/test/org/apache/tomcat/websocket/TestWsWebSocketContainer.java 
Thu Jan 24 10:18:28 2013
@@ -110,7 +110,7 @@ public class TestWsWebSocketContainer ex
 
         private final CountDownLatch latch;
 
-        private List<String> messages = new ArrayList<>();
+        private volatile List<String> messages = new ArrayList<>();
 
         public TesterMessageHandlerString(int latchCount) {
             if (latchCount > 0) {



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to