summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColby Ranger <cranger@google.com>2013-10-08 10:16:45 -0700
committerColby Ranger <cranger@google.com>2013-10-08 10:16:45 -0700
commit06ddee1c3f1ca1a7aa5180e0a0e3670e1849153a (patch)
tree04bef4e679d50cbc97a55c32b70bd5dd49d64e54
parenta27529c822ffae2b72048596370784f91e071a36 (diff)
downloadjgit-06ddee1c3f1ca1a7aa5180e0a0e3670e1849153a.tar.gz
jgit-06ddee1c3f1ca1a7aa5180e0a0e3670e1849153a.zip
Fix ServiceMayNotContinueException constructors for Java 1.5
IOException did not add a (String, Throwable) constructor until 1.5. Instead use the String super constructor and initCause to initialize the exception. Fixes bug 418889 Change-Id: Ide735ecfc7d04884981b79b57a4275863ce17006
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/transport/ServiceMayNotContinueException.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/ServiceMayNotContinueException.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/ServiceMayNotContinueException.java
index fde23b3fa7..4c518eea9a 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/ServiceMayNotContinueException.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/ServiceMayNotContinueException.java
@@ -79,7 +79,8 @@ public class ServiceMayNotContinueException extends IOException {
* the cause of the exception.
*/
public ServiceMayNotContinueException(String msg, Throwable cause) {
- super(msg, cause);
+ super(msg);
+ initCause(cause);
}
/**
@@ -89,7 +90,7 @@ public class ServiceMayNotContinueException extends IOException {
* the cause of the exception.
*/
public ServiceMayNotContinueException(Throwable cause) {
- super(JGitText.get().internalServerError, cause);
+ this(JGitText.get().internalServerError, cause);
}
/** @return true if the message was already output to the client. */