From 41390b6364dfe3582b0ce38ac8c802e4fcc78b4f Mon Sep 17 00:00:00 2001 From: kohsuke Date: Sat, 15 Nov 2008 00:54:40 +0000 Subject: [PATCH] fixed JDK6 dependency. See, this stuff actually works. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13260 71c3de6d-444a-0410-be80-ed276b4c234a --- .../main/java/hudson/node_monitors/ResponseTimeMonitor.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/hudson/node_monitors/ResponseTimeMonitor.java b/core/src/main/java/hudson/node_monitors/ResponseTimeMonitor.java index 61d79b2681..d083217b1e 100644 --- a/core/src/main/java/hudson/node_monitors/ResponseTimeMonitor.java +++ b/core/src/main/java/hudson/node_monitors/ResponseTimeMonitor.java @@ -5,6 +5,7 @@ import hudson.model.Computer; import hudson.remoting.Callable; import hudson.remoting.Future; import hudson.util.TimeUnit2; +import hudson.util.IOException2; import net.sf.json.JSONObject; import org.kohsuke.stapler.StaplerRequest; @@ -38,7 +39,7 @@ public class ResponseTimeMonitor extends NodeMonitor { long end = System.nanoTime(); d = new Data(old,TimeUnit2.NANOSECONDS.toMillis(end-start)); } catch (ExecutionException e) { - throw new IOException(e.getCause()); // I don't think this is possible + throw new IOException2(e.getCause()); // I don't think this is possible } catch (TimeoutException e) { // special constant to indicate that the processing timed out. d = new Data(old,-1L); -- GitLab