From c544e96a4cd027a127bc6e6ad5277091b3c0da73 Mon Sep 17 00:00:00 2001 From: Mathias Kinzler Date: Fri, 28 Jan 2011 09:24:20 +0100 Subject: [PATCH] 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 --- .../src/org/eclipse/jgit/transport/TransportHttp.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()); } } -- 2.39.5