You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2010/01/04 19:48:08 UTC

svn commit: r895744 - /commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TesterConnection.java

Author: sebb
Date: Mon Jan  4 18:48:05 2010
New Revision: 895744

URL: http://svn.apache.org/viewvc?rev=895744&view=rev
Log:
Avoid deprecation

Modified:
    commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TesterConnection.java

Modified: commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TesterConnection.java
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TesterConnection.java?rev=895744&r1=895743&r2=895744&view=diff
==============================================================================
--- commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TesterConnection.java (original)
+++ commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TesterConnection.java Mon Jan  4 18:48:05 2010
@@ -212,7 +212,7 @@
     
     protected void checkFailure() throws SQLException {
         if (failure != null) {
-            throw new SQLNestedException("TesterConnection failure", failure);
+            throw (SQLException) new SQLException("TesterConnection failure").initCause(failure);
         }
     }