[jboss-remoting-commits] JBoss Remoting SVN: r5291 - remoting2/branches/2.x/src/tests/org/jboss/test/remoting/marshall/config.

jboss-remoting-commits at lists.jboss.org jboss-remoting-commits at lists.jboss.org
Thu May 21 11:55:55 EDT 2009


Author: ron.sigal at jboss.com
Date: 2009-05-21 11:55:55 -0400 (Thu, 21 May 2009)
New Revision: 5291

Modified:
   remoting2/branches/2.x/src/tests/org/jboss/test/remoting/marshall/config/ConfigTestMarshaller.java
   remoting2/branches/2.x/src/tests/org/jboss/test/remoting/marshall/config/ConfigTestUnmarshaller.java
   remoting2/branches/2.x/src/tests/org/jboss/test/remoting/marshall/config/LocatorTestMarshaller.java
   remoting2/branches/2.x/src/tests/org/jboss/test/remoting/marshall/config/LocatorTestUnmarshaller.java
Log:
JBREM-1102: Made flags volatile.

Modified: remoting2/branches/2.x/src/tests/org/jboss/test/remoting/marshall/config/ConfigTestMarshaller.java
===================================================================
--- remoting2/branches/2.x/src/tests/org/jboss/test/remoting/marshall/config/ConfigTestMarshaller.java	2009-05-20 05:38:43 UTC (rev 5290)
+++ remoting2/branches/2.x/src/tests/org/jboss/test/remoting/marshall/config/ConfigTestMarshaller.java	2009-05-21 15:55:55 UTC (rev 5291)
@@ -39,8 +39,8 @@
 {
    protected static Logger log = Logger.getLogger(ConfigTestMarshaller.class);
    private static final long serialVersionUID = 1L;
-   public static int cloned;
-   public static boolean wrote;
+   public static volatile int cloned;
+   public static volatile boolean wrote;
 
    public void write(Object dataObject, OutputStream output, int version) throws IOException
    {

Modified: remoting2/branches/2.x/src/tests/org/jboss/test/remoting/marshall/config/ConfigTestUnmarshaller.java
===================================================================
--- remoting2/branches/2.x/src/tests/org/jboss/test/remoting/marshall/config/ConfigTestUnmarshaller.java	2009-05-20 05:38:43 UTC (rev 5290)
+++ remoting2/branches/2.x/src/tests/org/jboss/test/remoting/marshall/config/ConfigTestUnmarshaller.java	2009-05-21 15:55:55 UTC (rev 5291)
@@ -40,8 +40,8 @@
 {
    protected static Logger log = Logger.getLogger(ConfigTestUnmarshaller.class);
    private static final long serialVersionUID = 1L;
-   public static int cloned;
-   public static boolean read;
+   public static volatile int cloned;
+   public static volatile boolean read;
 
    public UnMarshaller cloneUnMarshaller() throws CloneNotSupportedException
    {

Modified: remoting2/branches/2.x/src/tests/org/jboss/test/remoting/marshall/config/LocatorTestMarshaller.java
===================================================================
--- remoting2/branches/2.x/src/tests/org/jboss/test/remoting/marshall/config/LocatorTestMarshaller.java	2009-05-20 05:38:43 UTC (rev 5290)
+++ remoting2/branches/2.x/src/tests/org/jboss/test/remoting/marshall/config/LocatorTestMarshaller.java	2009-05-21 15:55:55 UTC (rev 5291)
@@ -34,8 +34,8 @@
 public class LocatorTestMarshaller extends ConfigTestMarshaller
 {
    private static final long serialVersionUID = 1L;
-   public static int cloned;
-   public static boolean wrote;
+   public static volatile int cloned;
+   public static volatile boolean wrote;
    
    public Marshaller cloneMarshaller() throws CloneNotSupportedException
    {

Modified: remoting2/branches/2.x/src/tests/org/jboss/test/remoting/marshall/config/LocatorTestUnmarshaller.java
===================================================================
--- remoting2/branches/2.x/src/tests/org/jboss/test/remoting/marshall/config/LocatorTestUnmarshaller.java	2009-05-20 05:38:43 UTC (rev 5290)
+++ remoting2/branches/2.x/src/tests/org/jboss/test/remoting/marshall/config/LocatorTestUnmarshaller.java	2009-05-21 15:55:55 UTC (rev 5291)
@@ -33,8 +33,8 @@
 public class LocatorTestUnmarshaller extends ConfigTestUnmarshaller
 {
    private static final long serialVersionUID = 1L;
-   public static int cloned;
-   public static boolean read;
+   public static volatile int cloned;
+   public static volatile boolean read;
    
    public UnMarshaller cloneUnMarshaller() throws CloneNotSupportedException
    {




More information about the jboss-remoting-commits mailing list