[jboss-remoting-commits] JBoss Remoting SVN: r4963 - remoting2/branches/2.x/src/main/org/jboss/remoting.

jboss-remoting-commits at lists.jboss.org jboss-remoting-commits at lists.jboss.org
Wed Apr 8 03:36:16 EDT 2009


Author: ron.sigal at jboss.com
Date: 2009-04-08 03:36:16 -0400 (Wed, 08 Apr 2009)
New Revision: 4963

Modified:
   remoting2/branches/2.x/src/main/org/jboss/remoting/MicroRemoteClientInvoker.java
Log:
JBREM-1109: getDataType() uses localDataType to avoid race.

Modified: remoting2/branches/2.x/src/main/org/jboss/remoting/MicroRemoteClientInvoker.java
===================================================================
--- remoting2/branches/2.x/src/main/org/jboss/remoting/MicroRemoteClientInvoker.java	2009-04-08 07:34:23 UTC (rev 4962)
+++ remoting2/branches/2.x/src/main/org/jboss/remoting/MicroRemoteClientInvoker.java	2009-04-08 07:36:16 UTC (rev 4963)
@@ -509,11 +509,12 @@
    {
       if (dataType == null)
       {
-         dataType = getDataType(getLocator());
-         if (dataType == null)
+         String localDataType = getDataType(getLocator());
+         if (localDataType == null)
          {
-            dataType = getDefaultDataType();
+            localDataType = getDefaultDataType();
          }
+         dataType = localDataType;
       }
       return dataType;
    }




More information about the jboss-remoting-commits mailing list