commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r929361 - /commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPHTTPClient.java
Date Wed, 31 Mar 2010 01:57:54 GMT
Author: sebb
Date: Wed Mar 31 01:57:53 2010
New Revision: 929361

URL: http://svn.apache.org/viewvc?rev=929361&view=rev
Log:
Make code compatible with Java 1.5

Modified:
    commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPHTTPClient.java

Modified: commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPHTTPClient.java
URL: http://svn.apache.org/viewvc/commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPHTTPClient.java?rev=929361&r1=929360&r2=929361&view=diff
==============================================================================
--- commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPHTTPClient.java
(original)
+++ commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPHTTPClient.java
Wed Mar 31 01:57:53 2010
@@ -90,7 +90,9 @@ public class FTPHTTPClient extends FTPCl
             tunnelHandshake(host, port, _input_, _output_);
         }
         catch (Exception e) {
-            throw new IOException("Could not connect to " + host, e);
+            IOException ioe = new IOException("Could not connect to " + host);
+            ioe.initCause(e);
+            throw ioe;
         }
     }
 



Mime
View raw message