Hi,
  If the key I used to cache is an object that is a
member of another object, say A. Is A prevented from
being garbage collected? 

Code Example:
     MyObject o = new MyObject();
    
JCS.getInstance().put(o.getSomeObject(),someOtherObject);

My question is, will o is not garbage collected
because there is a ref to its member?

What are the guidelines? Should we clone the key
object if we want to free the object for Garbage
collection?

Will JCS clone keys internally?

Any insight will be appreciated.

Thanks,
Robin


        
                
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to