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_d...@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-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org