[jboss-user] [JBossCache] - problem when using new Fqn with Integer

emailmsgbox do-not-reply at jboss.com
Thu Feb 8 12:48:05 EST 2007


Hi,
So, JBoss 1.4.1. Cache 1.4.1sp1 with fileCacheLoader 

When I do the following 


  |     final static Fqn TEST = Fqn.fromString("/test/kuku");
  |     int id = 555'
  | 
  |     putObject("/test/kuku/+id, myObject);
  | 
  | ...
  | 
  |    Map aMap = findObjects("/test/kuku");
  |    Set aSet  = getChildrenNames("/test/kuku");
  | 
  | 

I get one object back both in the map and set

BUT When I do the following 


  |     final static Fqn TEST = Fqn.fromString("/test/kuku");
  |     Integer id = 555'
  | 
  |     putObject(new Fqn(TEST , id ), myObject);
  | 
  | ...
  | 
  |    Map aMap = findObjects(TEST );
  |    Set aSet  = getChildrenNames(TEST );
  | 
  | 


I get two identical  Myobject  in the map and  in the set also 
one is by a string and the second is by an Integer

Ideas?


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4013165#4013165

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4013165



More information about the jboss-user mailing list