From: Mathias Kinzler Date: Fri, 28 Jan 2011 08:24:20 +0000 (+0100) Subject: TransportHttp wrongly uses JDK 6 constructor of IOException X-Git-Tag: v0.11.1~32 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fchanges%2F63%2F2363%2F1;p=jgit.git TransportHttp wrongly uses JDK 6 constructor of IOException IOException constructor taking Exception as parameter is new for JDK 6. Change-Id: Iec349fc7be9e9fbaeb53841894883c47a98a7b29 Signed-off-by: Mathias Kinzler --- diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportHttp.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportHttp.java index 3ec88714f4..5c4e11036c 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportHttp.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportHttp.java @@ -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()); } }