RFR: 8369432: Add Support for JDBC 4.5 MR
Alan Bateman
alanb at openjdk.org
Fri Oct 10 14:19:54 UTC 2025
On Wed, 8 Oct 2025 14:49:07 GMT, Lance Andersen <lancea at openjdk.org> wrote:
> This PR adds support for the upcoming JDBC 4.5 MR which provides the following updates to the JDBC specification:
>
> - Deprecate SQLPermission for removal
> - Enhance the Blob/Clob/Array/SQLXML/NClob interfaces to extend/support AutoClosable
> - Add the SQL types DECFLOAT, JSON to Types.Java and JDBCType.java
> - Add the quoted identifier methods that **were added previously to the Statement interface in JDK 9** to the Connection interface
> - It is the exact same verbiage & default methods used when these methods were added to the Statement interface
> - Clarify the Timestamp::hashCode method which incorrectly indicates that nanos are not used when calculating the hash
>
> Tiers 1-3 have been run
src/java.sql/share/classes/java/sql/Connection.java line 1840:
> 1838: throw new SQLException("Invalid name");
> 1839: }
> 1840: }
Have you considered creating a non-public class with the implementations so that we don't have the same implementation in Statement and Connection? This would also provide somewhere to cache the compiled Patterns (a candidate for LazyConstant in the future, not now as the java.sql does not participate in preview features at this time).
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27693#discussion_r2420470418
More information about the core-libs-dev
mailing list