Re: PGXAConnection ConnectionHandler equals bug

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: PGXAConnection ConnectionHandler equals bug
Дата
Msg-id 4E9C1F73020000250004205D@gw.wicourts.gov
обсуждение исходный текст
Ответ на PGXAConnection ConnectionHandler equals bug  (Florent Guillaume <fg@nuxeo.com>)
Ответы Re: PGXAConnection ConnectionHandler equals bug  (Florent Guillaume <fg@nuxeo.com>)
Список pgsql-jdbc
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

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Florent Guillaume
Дата:
Сообщение: PGXAConnection ConnectionHandler equals bug
Следующее
От: Florent Guillaume
Дата:
Сообщение: Re: PGXAConnection ConnectionHandler equals bug