This is an automated email from the ASF dual-hosted git repository. rmaucher pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 232afd85f05afbfb4bcb8a160e0e5021b31149ea Author: opencode <[email protected]> AuthorDate: Fri Nov 6 11:20:39 2026 +0100 Clarify the result-set proxy's own methods The result-set proxy answers getStatement() and the Object identity methods itself, while every other call including the Wrapper methods is forwarded to the driver object. --- .../jdbc/pool/interceptor/StatementDecoratorInterceptor.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/interceptor/StatementDecoratorInterceptor.java b/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/interceptor/StatementDecoratorInterceptor.java index 66b4f63edd..6b0369c38b 100644 --- a/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/interceptor/StatementDecoratorInterceptor.java +++ b/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/interceptor/StatementDecoratorInterceptor.java @@ -44,9 +44,10 @@ import org.apache.tomcat.jdbc.pool.util.MessageFactory; * an {@link SQLException}, and the driver's answer to a close that failed is passed to the caller - the handle is * retired whichever way the driver answered. The connection the proxy reports is a snapshot of the borrow that * created it, so a component that reuses a statement across borrows - {@link StatementCache} - must re-bind the - * handle first, as {@link StatementProxy#setConnection(Object)} documents. The result set proxy answers only - * {@link ResultSet#getStatement()} itself; everything else, {@link java.sql.Wrapper#unwrap(Class)} included, - * reaches the driver object unchanged. + * handle first, as {@link StatementProxy#setConnection(Object)} documents. The result set proxy answers + * {@link ResultSet#getStatement()} and the {@link Object} identity methods ({@code toString}, {@code equals}, + * {@code hashCode}) itself; every other call, the {@link java.sql.Wrapper} methods included, reaches the driver object + * unchanged. */ public class StatementDecoratorInterceptor extends AbstractCreateStatementInterceptor { --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
