commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r895744 - /commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TesterConnection.java
Date Mon, 04 Jan 2010 18:48:08 GMT
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);
         }
     }
     



Mime
View raw message