Re: Why is the JDBC driver re-arranged?

From: Peter Mount <peter(at)retep(dot)org(dot)uk>
To: Michael Ma <mikema(at)ficnet(dot)net>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Why is the JDBC driver re-arranged?
Date: 2000-06-01 11:28:37
Message-ID: Pine.LNX.4.10.10006011226320.6001-100000@maidast.retep.org.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, 20 May 2000, Michael Ma wrote:

> Hi,
>
> Prior to 6.5, when I ran
>
> $ jar tvf jdbc6.5-1.2.jar
>
> I got
>
> ......
> 5309 Wed Sep 15 21:45:44 CST 1999 postgresql/Driver.class
> ......
>
> Now in 7.0, when I ran
>
> $ jar tvf jdbc7.0-1.2.jar
>
> I got
>
> ......
> 5341 Mon May 15 16:07:48 CST 2000 org/postgresql/Driver.class
> ......
>
> Is there any particular reason to rearrange postgresql.Driver to be
> org.postgresql.Driver?

Yes. The standard way to do packages in Java is to use the organisations
domain (in reverse). This way clashes between rival packages from
different vendors won't occur.

For example, one of my packages on sourceforge uses the package
uk.org.retep.pdf (retep.org.uk being my own domain name). Sun uses
com.sun, and so on.

We didn't change it before 7.0, because it's a major change (with JDBC
only being introduced around 6.1).

Peter

--
Peter T Mount peter(at)retep(dot)org(dot)uk
Main Homepage: http://www.retep.org.uk
PostgreSQL JDBC Faq: http://www.retep.org.uk/postgres
Java PDF Generator: http://www.retep.org.uk/pdf

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adriaan Joubert 2000-06-01 11:42:30 Re: postmaster aint listening..
Previous Message crypt0genic 2000-06-01 11:13:41 postmaster aint listening..