提交 0e716960 编写于 作者: K kohsuke

[fixed] A slave may still run on Java5 even when the master runs on Java6. In 1.214. (issue #1568)

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@9208 71c3de6d-444a-0410-be80-ed276b4c234a
上级 fa3424ca
......@@ -4,7 +4,6 @@ import hudson.FilePath;
import hudson.Util;
import hudson.FilePath.FileCallable;
import hudson.model.Computer;
import hudson.model.Descriptor;
import hudson.remoting.VirtualChannel;
import org.kohsuke.stapler.StaplerRequest;
......@@ -61,7 +60,12 @@ public class DiskSpaceMonitor extends NodeMonitor {
private static final class GetUsableSpace implements FileCallable<Long> {
public Long invoke(File f, VirtualChannel channel) throws IOException {
return f.getUsableSpace();
try {
return f.getUsableSpace();
} catch (LinkageError e) {
// pre-mustang
return null;
}
}
private static final long serialVersionUID = 1L;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册