tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 52015] New: JdbcInterceptor passes wrong argument to getNext().invoke
Date Wed, 12 Oct 2011 18:09:24 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=52015

             Bug #: 52015
           Summary: JdbcInterceptor passes wrong argument to
                    getNext().invoke
           Product: Tomcat Modules
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: jdbc-pool
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: hay_dave@yahoo.com
    Classification: Unclassified


The default implementation of JdbcInterceptor.invoke passes itself as the proxy
argument to the next interceptor in the chain.  I'm thinking this should really
pass the 'proxy' argument.

This means that interceptors cannot cast the 'proxy' argument to a
java.sql.Connection.

JdbcInterceptor line 94 should look like this:

if (getNext()!=null) return getNext().invoke(proxy,method,args);

instead of this:

if (getNext()!=null) return getNext().invoke(this,method,args);

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message