Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn2014-05-21 20:32:58 +0000
committerMatthias Sohn2014-05-21 20:32:58 +0000
commit1f1e93214bf2a2080f1fd2874d3ec39d8edcdf23 (patch)
treeb2645d62a3dda264da5e3282a21c5169ffd6eee0
parent0e13adb9cf3c498a790f080f07eb72cc2fb7c4e0 (diff)
downloadjgit-1f1e93214bf2a2080f1fd2874d3ec39d8edcdf23.tar.gz
jgit-1f1e93214bf2a2080f1fd2874d3ec39d8edcdf23.tar.xz
jgit-1f1e93214bf2a2080f1fd2874d3ec39d8edcdf23.zip
Remove usage of IOException(Throwable) not available on Java 5
Change-Id: I386aa77fb78bed3fb38a3ce46eaeb47df95fdde3 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/transport/HttpAuthMethod.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/HttpAuthMethod.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/HttpAuthMethod.java
index 6c30824e6e..47cbf691f4 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/HttpAuthMethod.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/HttpAuthMethod.java
@@ -517,7 +517,9 @@ abstract class HttpAuthMethod {
conn.setRequestProperty(HDR_AUTHORIZATION, getType().name()
+ " " + Base64.encodeBytes(token)); //$NON-NLS-1$
} catch (GSSException e) {
- throw new IOException(e);
+ IOException ioe = new IOException();
+ ioe.initCause(e);
+ throw ioe;
}
}
}

Back to the top