JBoss Cache SVN: r8145 - core/trunk/src/main/java/org/jboss/cache/interceptors.
by jbosscache-commits@lists.jboss.org
Author: manik.surtani(a)jboss.com
Date: 2009-07-30 07:44:18 -0400 (Thu, 30 Jul 2009)
New Revision: 8145
Modified:
core/trunk/src/main/java/org/jboss/cache/interceptors/LegacyDataGravitatorInterceptor.java
Log:
Patch for JBCACHE-1524 ( ClassCastException processing GravitateDataCommand results in LegacyDataGravitatorInterceptor )
Modified: core/trunk/src/main/java/org/jboss/cache/interceptors/LegacyDataGravitatorInterceptor.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/interceptors/LegacyDataGravitatorInterceptor.java 2009-07-27 00:56:58 UTC (rev 8144)
+++ core/trunk/src/main/java/org/jboss/cache/interceptors/LegacyDataGravitatorInterceptor.java 2009-07-30 11:44:18 UTC (rev 8145)
@@ -41,9 +41,9 @@
import org.jboss.cache.commands.read.GravitateDataCommand;
import org.jboss.cache.commands.remote.DataGravitationCleanupCommand;
import org.jboss.cache.commands.tx.CommitCommand;
-import org.jboss.cache.commands.tx.RollbackCommand;
-import org.jboss.cache.commands.tx.PrepareCommand;
import org.jboss.cache.commands.tx.OptimisticPrepareCommand;
+import org.jboss.cache.commands.tx.PrepareCommand;
+import org.jboss.cache.commands.tx.RollbackCommand;
import org.jboss.cache.factories.annotations.Inject;
import org.jboss.cache.marshall.NodeData;
import org.jboss.cache.transaction.GlobalTransaction;
@@ -51,7 +51,6 @@
import org.jgroups.blocks.GroupRequest;
import org.jgroups.blocks.RspFilter;
-import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
@@ -376,7 +375,7 @@
log.debug("Found remote Throwable among responses - removing from responses list", (Exception) o);
}
}
- else if (o != null)
+ else if (o != null && o instanceof GravitateResult)
{
result = (GravitateResult) o;
if (result.isDataFound())