Re: BUG #3722: PSQLWarning missing call to super in CTOR - Mailing list pgsql-bugs

From Kris Jurka
Subject Re: BUG #3722: PSQLWarning missing call to super in CTOR
Date
Msg-id Pine.BSO.4.64.0711061323260.23684@leary.csoft.net
Whole thread Raw
In response to BUG #3722: PSQLWarning missing call to super in CTOR  ("Henning Nitschke" <Henning.Nitschke@arag.de>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #3724: Duplicate values added to table despite unique index
Next
From: Tobias Klausmann
Date:
Subject: Re: Test suite fails on alpha architecture