Release Note: Add JDBC 4.5 MR Support

XMLWordPrintable

      JDK 26 includes support for the JDBC 4.5 MR. That MR provides the following updates to the JDBC Specification:

      - Deprecate [SQLPermission] for removal
      - Add the SQL types `DECFLOAT` and `JSON` to `JDBCType.java` and `Types.java`
      - Enhance the `Array`, `Blob`, `Clob`, `Nclob`, and `SQLXML` interfaces to extend and support `AutoClosable`. This adds 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 an impact on compatibility with some JDBC driver implementations:

      - If there is an internal, that is private or 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.

            Assignee:
            Lance Andersen
            Reporter:
            Lance Andersen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: