Re: JDK 1.5 beta2 and generics

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: JDK 1.5 beta2 and generics
Дата
Msg-id Pine.BSO.4.56.0406181124300.7147@leary.csoft.net
обсуждение исходный текст
Ответ на Re: JDK 1.5 beta2 and generics  (Dave Cramer <pg@fastcrypt.com>)
Список 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 по дате отправления:

Предыдущее
От: Paul Balanoiu
Дата:
Сообщение: Re: unsubscribe
Следующее
От: "Jie Liang"
Дата:
Сообщение: Re: Prepare Statement