5 Replies Latest reply on Feb 22, 2007 11:36 AM by Manik Surtani

    problem when using  new Fqn with Integer

    emailms box Newbie

      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?