cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clecl...@apache.org
Subject svn commit: r909933 - /cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java
Date Sat, 13 Feb 2010 23:52:17 GMT
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();



Mime
View raw message