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

From: Kris Jurka <books(at)ejurka(dot)com>
To: Henning Nitschke <Henning(dot)Nitschke(at)arag(dot)de>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3722: PSQLWarning missing call to super in CTOR
Date: 2007-11-06 18:25:11
Message-ID: Pine.BSO.4.64.0711061323260.23684@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Greg Sabino Mullane 2007-11-06 19:27:09 Planner problems in 8.2.4 and 8.2.5 (was: Possible planner bug/regression introduced in 8.2.5)
Previous Message Tobias Klausmann 2007-11-06 18:17:26 Re: Test suite fails on alpha architecture