-
Type:
Sub-task
-
Resolution: Unresolved
-
Priority:
P4
-
Affects Version/s: None
-
Component/s: core-libs
JDK 26 includes support for the JDBC 4.5 MR, that provides the following updates to the JDBC Specification:
- Deprecate [SQLPermission] for removal
- Add the SQL types DECFLOAT andJSON to JDBCType.java and Types.java
- Enhance the Array/Blob/Clob/Nclob/SQLXML interfaces to extend/support AutoClosable adding a default implementation of the close method which calls the free method
- Add default implementations of the quoted identifier methods previously added to the [Statement] interface in JDK 9 to the [Connection] interface
- The default implementation of [enquoteIdentifier][Statement.enquoteIdentifier] will throw a [SQLException] if [DatabaseMetaData::getIdentifierQuoteString] does not return a double quote
- The default implementation of [isSimpleIdentifier][Statement.isSimpleIdentifier] will now return `false` if the String passed to the method is a SQL Standard reserved word
This update may have compatibility impact to some JDBC driver implementations:
- If there is an internal(i.e. private/protected) implementation of the newly added default methods, the implementation will need to either be renamed or made public
- A class cannot implement multiple interfaces that provide different default implementations of the same method. Implementations of these interfaces may need to override the default methods to resolve the ambiguity.
- Deprecate [SQLPermission] for removal
- Add the SQL types DECFLOAT andJSON to JDBCType.java and Types.java
- Enhance the Array/Blob/Clob/Nclob/SQLXML interfaces to extend/support AutoClosable adding a default implementation of the close method which calls the free method
- Add default implementations of the quoted identifier methods previously added to the [Statement] interface in JDK 9 to the [Connection] interface
- The default implementation of [enquoteIdentifier][Statement.enquoteIdentifier] will throw a [SQLException] if [DatabaseMetaData::getIdentifierQuoteString] does not return a double quote
- The default implementation of [isSimpleIdentifier][Statement.isSimpleIdentifier] will now return `false` if the String passed to the method is a SQL Standard reserved word
This update may have compatibility impact to some JDBC driver implementations:
- If there is an internal(i.e. private/protected) implementation of the newly added default methods, the implementation will need to either be renamed or made public
- A class cannot implement multiple interfaces that provide different default implementations of the same method. Implementations of these interfaces may need to override the default methods to resolve the ambiguity.