RFR: 8369432: Add Support for JDBC 4.5 MR [v6]

Lance Andersen lancea at openjdk.org
Wed Oct 15 20:23:24 UTC 2025


On Wed, 15 Oct 2025 20:14:47 GMT, Johannes Döbler <duke at openjdk.org> wrote:

>> Lance Andersen has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Move fields from package-private to private
>
> src/java.sql/share/classes/java/sql/Statement.java line 1627:
> 
>> 1625:     */
>> 1626:     default String enquoteNCharLiteral(String val) throws SQLException {
>> 1627:         return SQLUtils.enquoteNCharLiteral(val);
> 
> Suggestion: `return getConnection().enquoteNCharLiteral(val);` to allow JDBC driver implementors have a single site to override behavior

No plans to do that in the default implementation.  Driver vendors can/should optimize as needed based on their driver implementation.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/27693#discussion_r2433830284


More information about the core-libs-dev mailing list