> From: J Aaron Farr [mailto:[EMAIL PROTECTED]] 
> 
> proxies to not equal() each other?

They don't. A Proxy isn't even equal() to itself many times.

Consider the case where an object O is wrapped by a proxy P.

P.equals (P) leads to O.equals (P), which in most cases is false 
due to class mismatch.

The StaticBucketMap uses == to compare the objects, and since
P == P is true even for proxies, there's no such problem.

The solution is to treat equals() as a special case in the 
prox's InvocationHandler.

/LS


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

Reply via email to