You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2011/10/12 20:09:24 UTC
DO NOT REPLY [Bug 52015] New: JdbcInterceptor passes wrong argument
to getNext().invoke
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
DO NOT REPLY [Bug 52015] JdbcInterceptor passes wrong argument to
getNext().invoke
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52015
Keiichi Fujino <kf...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Keiichi Fujino <kf...@apache.org> 2011-10-20 09:34:13 UTC ---
Thanks for report.
This is fixed in r1186681 and will be in 7.0.23 onwards.
--
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