Description
Our use of dbcp (1.2.1 and 1.2.2) shows that connection validation on testonborrow does not work. The pool still return closed connections. The error is in the following code. See the commented out line for the specific error.
----------------------
ra = ref.get("testOnBorrow");
if (ra != null && ra.getContent() != null)
ra = ref.get("testOnReturn");
if (ra != null && ra.getContent() != null)