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@retep.org.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