Re: BUG #3722: PSQLWarning missing call to super in CTOR

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: BUG #3722: PSQLWarning missing call to super in CTOR
Дата
Msg-id Pine.BSO.4.64.0711061323260.23684@leary.csoft.net
обсуждение исходный текст
Ответ на BUG #3722: PSQLWarning missing call to super in CTOR  ("Henning Nitschke" <Henning.Nitschke@arag.de>)
Список pgsql-bugs
On Tue, 6 Nov 2007, Henning Nitschke wrote:

> Bug reference:      3722
> PostgreSQL version: 8.2
> Operating system:   Java
> Description:        PSQLWarning missing call to super in CTOR
> Details:
>
> public PSQLWarning(ServerErrorMessage err)
> {
>  super(err.toString()); // <== missing
>  this.serverError = err;
> }
>

Why is this necessary?  Since PSQLWarning overrides both getMessage and
toString, why is the super call needed?

Kris Jurka

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #3724: Duplicate values added to table despite unique index
Следующее
От: Tobias Klausmann
Дата:
Сообщение: Re: Test suite fails on alpha architecture