[jbosscache-commits] JBoss Cache SVN: r7995 - searchable/trunk/src/main/java/org/jboss/cache/search.

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Thu Apr 23 14:08:10 EDT 2009


Author: seahawk at volny.cz
Date: 2009-04-23 14:08:10 -0400 (Thu, 23 Apr 2009)
New Revision: 7995

Modified:
   searchable/trunk/src/main/java/org/jboss/cache/search/SearchableCoreListener.java
Log:
add todo for illegal node data key casting to strings

Modified: searchable/trunk/src/main/java/org/jboss/cache/search/SearchableCoreListener.java
===================================================================
--- searchable/trunk/src/main/java/org/jboss/cache/search/SearchableCoreListener.java	2009-04-22 23:25:12 UTC (rev 7994)
+++ searchable/trunk/src/main/java/org/jboss/cache/search/SearchableCoreListener.java	2009-04-23 18:08:10 UTC (rev 7995)
@@ -99,6 +99,7 @@
 
          for (Object key : dataMap.keySet())
          {
+            // todo: the key may be any object ... casting may produce CCE and is breaking the cache iface contract
             CacheEntityId cacheEntityId = new CacheEntityId(event.getFqn(), (String) key);
             if (log.isTraceEnabled()) log.trace("Created new CacheEntityId");
 
@@ -152,6 +153,7 @@
 
       for (Object key : dataMap.keySet())
       {
+          // todo: the key may be any object ... casting may produce CCE and is breaking the cache iface contract
          CacheEntityId cacheEntityId = new CacheEntityId(event.getFqn(), (String) key);
          if (log.isTraceEnabled()) log.trace("Created new CacheEntityId");
 
@@ -190,6 +192,7 @@
 
       for (Object key : dataMap.keySet())
       {
+         // todo: the key may be any object ... casting may produce CCE and is breaking the cache iface contract
          CacheEntityId cacheEntityId = new CacheEntityId(event.getFqn(), (String) key);
 
          String fqnString = cacheEntityId.getFqn().toString();




More information about the jbosscache-commits mailing list