Re: JDK 1.5 beta2 and generics - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: JDK 1.5 beta2 and generics
Date
Msg-id Pine.BSO.4.56.0406181124300.7147@leary.csoft.net
Whole thread Raw
In response to Re: JDK 1.5 beta2 and generics  (Dave Cramer <pg@fastcrypt.com>)
List pgsql-jdbc

On Fri, 18 Jun 2004, Dave Cramer wrote:

> Kris,
>
> How does the 1.3, 1.4 driver handle this ?

In the past they haven't touched the API without a new JDBC version.  Our
model handles this cleanly with a separate directory/implementation for
the new part of the API.  The problem here is that they have changed the
method signature's specified in an interface without changing the API
version.

Note that this is only a problem for implementors, not callers.
The weak generic type checking allows for instance a method like
func(Hashtable<String,String>) to be called with func(new Hashtable()).
It doesn't require the caller to alter their passed data type only the
implementor to match the stricter method signature.

Kris Jurka

pgsql-jdbc by date:

Previous
From: Paul Balanoiu
Date:
Subject: Re: unsubscribe
Next
From: "Jie Liang"
Date:
Subject: Re: Prepare Statement