This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-dbcp.git

commit 1995993b827d80767b799702a85c1a83eb5d150c
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Nov 22 19:30:31 2026 -0500

    Undeprecate InstanceKeyDataSource.setLoginTimeout(int) since it
    implements javax.sql.CommonDataSource.setLoginTimeout(int)
---
 src/changes/changes.xml                                                 | 1 +
 .../org/apache/commons/dbcp2/datasources/InstanceKeyDataSource.java     | 2 --
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 7a12cc55..2a344633 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -79,6 +79,7 @@ The <action> type attribute can be add,update,fix,remove.
       <action type="fix" dev="ggregory" due-to="Gary Gregory">Invalidate 
cached read-only, catalog, and schema state before driver calls in 
DelegatingConnection so unchecked failures do not leave stale values or prevent 
pooled connection state restoration.</action>
       <action type="fix" dev="ggregory" due-to="Aryan Ganjoo, Gary Gregory" 
issue="DBCP-600">Honor positive sub-second validation timeouts as one JDBC 
second in both validation paths, and cap oversized durations to prevent integer 
overflow #548.</action>
       <action type="fix" dev="ggregory" due-to="Gary Gregory">Undeprecate 
org.apache.commons.dbcp2.DelegatingConnection.isValid(int) since it implements 
java.sql.Connection.isValid(int).</action>
+      <action type="fix" dev="ggregory" due-to="Gary Gregory">Undeprecate 
InstanceKeyDataSource.setLoginTimeout(int) since it implements 
javax.sql.CommonDataSource.setLoginTimeout(int).</action>
       <action type="fix" dev="ggregory" due-to="Gary Gregory">Honor positive 
sub-second default query timeouts and direct connection validation timeouts, 
and cap oversized durations without losing JDBC rejection of negative 
values.</action>
       <action type="fix" dev="ggregory" due-to="Gary Gregory">Restore the 
original query timeout when returning pooled prepared and callable statements, 
preventing timeout settings from leaking between borrowers.</action>
       <action type="fix" dev="ggregory" due-to="Gary Gregory">Preserve 
DriverAdapterCPDS eviction durations through JNDI References, preferring 
Duration properties and accepting long legacy millisecond values.</action>
diff --git 
a/src/main/java/org/apache/commons/dbcp2/datasources/InstanceKeyDataSource.java 
b/src/main/java/org/apache/commons/dbcp2/datasources/InstanceKeyDataSource.java
index 802fe30f..f0a5ccce 100644
--- 
a/src/main/java/org/apache/commons/dbcp2/datasources/InstanceKeyDataSource.java
+++ 
b/src/main/java/org/apache/commons/dbcp2/datasources/InstanceKeyDataSource.java
@@ -1162,9 +1162,7 @@ public abstract class InstanceKeyDataSource implements 
DataSource, Referenceable
      *
      * @param loginTimeout a nonnegative timeout in seconds.
      * @throws IllegalArgumentException if loginTimeout is negative.
-     * @deprecated Use {@link #setLoginTimeout(Duration)}.
      */
-    @Deprecated
     @Override
     public void setLoginTimeout(final int loginTimeout) {
         setLoginTimeout(Duration.ofSeconds(loginTimeout));

Reply via email to