Author: ron.sigal(a)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;
}