cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clecl...@apache.org
Subject svn commit: r920752 - /cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/https/HttpsURLConnectionFactory.java
Date Tue, 09 Mar 2010 09:32:34 GMT
Author: cleclerc
Date: Tue Mar  9 09:32:34 2010
New Revision: 920752

URL: http://svn.apache.org/viewvc?rev=920752&view=rev
Log:
[CXF-2693] fix java 1.5 compatibility issue

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

Modified: cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/https/HttpsURLConnectionFactory.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/https/HttpsURLConnectionFactory.java?rev=920752&r1=920751&r2=920752&view=diff
==============================================================================
--- cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/https/HttpsURLConnectionFactory.java
(original)
+++ cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/https/HttpsURLConnectionFactory.java
Tue Mar  9 09:32:34 2010
@@ -130,7 +130,10 @@ public final class HttpsURLConnectionFac
                     if (ex instanceof IOException) {
                         throw (IOException) ex;
                     }
-                    throw new IOException("Error while initializing secure socket", ex);
+                    // use exception.initCause(ex) to be java 5 compatible
+                    IOException ioException = new IOException("Error while initializing secure
socket");
+                    ioException.initCause(ex);
+                    throw ioException;
                 }
             }
         }



Mime
View raw message