Florent Guillaume <fg@nuxeo.com> wrote:
> When you have a Connection coming from a XAConnection, the
> equals() method doesn't work: conn.equals(conn) returns false.
>
> The reason is that it's a actually a wapper, a
> org.postgresql.xa.PGXAConnection.ConnectionHandler, and its
> invoke() method doesn't take into account the "equals" case to
> unwrap the second argument as well if needed.
Is the hashCode method OK? (What affects equals usually affects
hashCode, too.)
-Kevin