Обсуждение: PostgreSQL 7.4.1 JDBC driver bug

Поиск
Список
Период
Сортировка

PostgreSQL 7.4.1 JDBC driver bug

От
Declan Lynch
Дата:
PostgreSQL 7.4.1 JDBC driver bug

In the package

org.postgresql.geometric

the class PGcircle contains what I think is an "oversight".

For classes in this package fields are declared "public" allowing direct access.  This is true for all classes execept
PGcirclewhere the radius field is declared without a modifier.  This makes the class unusable from a java program
withoutmodification, as no accessor method is defined. 

The source code reads

public class PGcircle extends PGobject implements Serializable, Cloneable
{
 /*
  * This is the centre point
  */
 public PGpoint center;

 /*
  * This is the radius
  */
 double radius;


Hope you can fix this in a later release,

Declan Lynch
Technician
School of Control Systems and Electrical Engineering
Dublin Institute of Technology
Kevin Street
Dublin 8
Ireland

e-mail: declan.lynch@dit.ie
Tel: +353 1 4024721
Fax: +353 1 4024999

--
This message has been scanned for content and
viruses by the DIT Information Services MailScanner
Service, and is believed to be clean.
http://www.dit.ie

Re: PostgreSQL 7.4.1 JDBC driver bug

От
Kris Jurka
Дата:
On Wed, 5 May 2004, Declan Lynch wrote:

> PostgreSQL 7.4.1 JDBC driver bug
>
> In the package
>
> org.postgresql.geometric
>
> the class PGcircle contains what I think is an "oversight".
>
> For classes in this package fields are declared "public" allowing direct
> access.  This is true for all classes execept PGcircle where the radius
> field is declared without a modifier.  This makes the class unusable
> from a java program without modification, as no accessor method is
> defined.
>

This has been fixed in both the stable and development cvs trees and will
be included with the next release.  Thanks for the report.

Kris Jurka