You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by cl...@apache.org on 2010/02/14 00:52:17 UTC

svn commit: r909933 - /cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java

Author: cleclerc
Date: Sat Feb 13 23:52:17 2010
New Revision: 909933

URL: http://svn.apache.org/viewvc?rev=909933&view=rev
Log:
[CXF-2672] Enhance CXF client message in case of HttpRetryException (http codes 401 and 407)
Fix JDK 1.5 compatibility

Modified:
    cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java

Modified: cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java?rev=909933&r1=909932&r2=909933&view=diff
==============================================================================
--- cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java (original)
+++ cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java Sat Feb 13 23:52:17 2010
@@ -2027,7 +2027,8 @@
                     // No other type of HttpRetryException should be thrown
                     break;
                 }
-                throw new IOException(msg, e);
+                // pass cause with initCause() instead of constructor for jdk 1.5 compatibility
+                throw (IOException) new IOException(msg).initCause(e);
             } catch (IOException e) {
                 String url = connection.getURL().toString();
                 String origMessage = e.getMessage();