]> source.dussan.org Git - jgit.git/commitdiff
TransportHttp wrongly uses JDK 6 constructor of IOException 63/2363/1
authorMathias Kinzler <mathias.kinzler@sap.com>
Fri, 28 Jan 2011 08:24:20 +0000 (09:24 +0100)
committerMathias Kinzler <mathias.kinzler@sap.com>
Fri, 28 Jan 2011 08:24:20 +0000 (09:24 +0100)
IOException constructor taking Exception as parameter is
new for JDK 6.

Change-Id: Iec349fc7be9e9fbaeb53841894883c47a98a7b29
Signed-off-by: Mathias Kinzler <mathias.kinzler@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportHttp.java

index 3ec88714f45e7f7b4e5d71728abd6771b867726f..5c4e11036c1d4057539eec1ac558184360d46f50 100644 (file)
@@ -438,9 +438,9 @@ public class TransportHttp extends HttpTransport implements WalkTransport,
                        final HttpsURLConnection sslConn = (HttpsURLConnection) conn;
                        sslConn.setSSLSocketFactory(ctx.getSocketFactory());
                } catch (KeyManagementException e) {
-                       throw new IOException(e);
+                       throw new IOException(e.getMessage());
                } catch (NoSuchAlgorithmException e) {
-                       throw new IOException(e);
+                       throw new IOException(e.getMessage());
                }
        }