On 9 June 2011 04:39, Phil Steitz <phil.ste...@gmail.com> wrote: > Code in trunk now does not work when distinct pooled instances are > equal - i.e., if a factory produces instances A and B and > A.equals(B), this causes problems. I think this situation should > be allowed - i.e. it is an unacceptable restriction to put on object > factories that distinct the poolable objects they produce be > distinguishable under equals. This would be a new requirement for > [pool] and I don't think we should require it. What do others think?
I agree one should not require instances to be unequal. That means Pool has to be a bit careful about how it uses hashes - presumably these objects will have the same hashCodes too. > Phil > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > For additional commands, e-mail: dev-h...@commons.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org