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

rmaucher pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit 4e315e0e28244ca47186aa626c2c4d0d80870e4b
Author: opencode <[email protected]>
AuthorDate: Thu Nov 5 23:43:59 2026 +0100

    Fix the java.sql.Connection javadoc reference
    
    The PooledConnection.toString() javadoc used a simple Connection#toString() 
link that javadoc cannot resolve without the import. Refer to the qualified 
type.
---
 .../src/main/java/org/apache/tomcat/jdbc/pool/PooledConnection.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/PooledConnection.java
 
b/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/PooledConnection.java
index 78cd606e49..51853fe5e0 100644
--- 
a/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/PooledConnection.java
+++ 
b/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/PooledConnection.java
@@ -1646,7 +1646,7 @@ public class PooledConnection implements 
PooledConnectionMBean {
 =======
      * Returns a diagnostic rendering of this pooled connection that is safe 
to interpolate into a pool log message:
      * the connection's identity and whether it currently holds a physical 
session, never the driver's own
-     * {@link Connection#toString()}. That text is unmasked and may carry the 
URL, the user or other session details,
+     * {@link java.sql.Connection}'s own {@code toString()}. That text is 
unmasked and may carry the URL, the user or other session details,
      * and it may contain newlines, so passing it into a pool warning could 
expose a credential or forge log lines. A
      * caller that wants the driver's text for an explicit dump can read the 
physical connection itself.
 >>>>>>> 52871c512d (Reset validation on a new session and make 
 >>>>>>> PooledConnection logging safe)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to