Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-bugs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group