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

Started by Vernon Smithabout 12 years ago3 messagesbugs
Jump to latest
#1Vernon Smith
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.

--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

#2David G. Johnston
david.g.johnston@gmail.com
In reply to: Vernon Smith (#1)
Re: BUG #9611: Current jdbc driver doesn't support any classes in Java 8 java.time

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.

--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

#3Craig Ringer
craig@2ndquadrant.com
In reply to: David G. Johnston (#2)
Re: Re: BUG #9611: Current jdbc driver doesn't support any classes in Java 8 java.time

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

--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs