tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 52015] New: JdbcInterceptor passes wrong argument to getNext().invoke
Date Wed, 12 Oct 2011 18:09:24 GMT

             Bug #: 52015
           Summary: JdbcInterceptor passes wrong argument to
           Product: Tomcat Modules
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: jdbc-pool
    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

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:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message