| commit | 1f1e93214bf2a2080f1fd2874d3ec39d8edcdf23 | [log] [tgz] |
|---|---|---|
| author | Matthias Sohn <matthias.sohn@sap.com> | Wed May 21 22:32:58 2014 +0200 |
| committer | Matthias Sohn <matthias.sohn@sap.com> | Wed May 21 22:32:58 2014 +0200 |
| tree | b2645d62a3dda264da5e3282a21c5169ffd6eee0 | |
| parent | 0e13adb9cf3c498a790f080f07eb72cc2fb7c4e0 [diff] |
Remove usage of IOException(Throwable) not available on Java 5 Change-Id: I386aa77fb78bed3fb38a3ce46eaeb47df95fdde3 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
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 6c30824..47cbf69 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 @@ void configureRequest(HttpConnection conn) throws IOException { 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; } } }