Обсуждение: BUG #9611: Current jdbc driver doesn't support any classes in Java 8 java.time

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

BUG #9611: Current jdbc driver doesn't support any classes in Java 8 java.time

От
vwu98034@lycos.com
Дата:
The following bug has been logged on the website:

Bug reference:      9611
Logged by:          Vernon
Email address:      vwu98034@lycos.com
PostgreSQL version: 9.3.3
Operating system:   Windows 8
Description:

I can't map any Java 8 java.time classes to timestamp with/without time
zone. The old Java Date, Calendar classes will be deprecated in a near
future.

Re: BUG #9611: Current jdbc driver doesn't support any classes in Java 8 java.time

От
David Johnston
Дата:
Vernon E wrote
> The following bug has been logged on the website:
>
> Bug reference:      9611
> Logged by:          Vernon
> Email address:

> vwu98034@

> PostgreSQL version: 9.3.3
> Operating system:   Windows 8
> Description:
>
> I can't map any Java 8 java.time classes to timestamp with/without time
> zone. The old Java Date, Calendar classes will be deprecated in a near
> future.

This is neither the correct forum nor a bug.

I haven't given this much thought but...
1. Deprecated does not mean gone
2. Coding a Java 8 driver would seem to require de-supporting any prior
versions...which seems strange but anyway
3. Not that you necessarily need to but do you have anything to add besides
the request itself
4. For all I know you may just be doing it wrong...the lack of detail and my
desire to not get dragged into the java 8 rabbit hole at this moment do not
combine for a helpful response, sorry.

There is a jdbc list where this is on topic and you could also post an issue
request to the official github repository.

Given the state of Java for the past while there isn't a large, active
development team working on the current official driver and only a few
groups working on new ones.  I would encourage those with a current need to
figure out ways to contribute to the effort either with pseudo code, actual
code, or even just research and suggestions.

David J.





--
View this message in context:
http://postgresql.1045698.n5.nabble.com/BUG-9611-Current-jdbc-driver-doesn-t-support-any-classes-in-Java-8-java-time-tp5796517p5796525.html
Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.

Re: Re: BUG #9611: Current jdbc driver doesn't support any classes in Java 8 java.time

От
Craig Ringer
Дата:
On 03/18/2014 12:03 PM, David Johnston wrote:
> 2. Coding a Java 8 driver would seem to require de-supporting any prior
> versions...

No, it doesn't.

We already have support for building JDBC3 drivers against JDK5, and
JDBC4 against JDK6, as well as 4.1 against JDK7.

Adding JDK8 only method overloads, etc, would not be a significant
issue. However, I'd want to do that as part of a JDBC spec revision, so
that PgJDBC behaves consistently with other JDBC drivers on JDK8.

Have you, Vernon, done any checking to see whether JDK8 incorporates the
features you want in a JDBC spec update?

--
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services