提交 8a1b069a 编写于 作者: J Jesse Glick

[FIXED JENKINS-14667] JDK installation failed on some slaves with...

[FIXED JENKINS-14667] JDK installation failed on some slaves with InvalidClassException: hudson.tools.JDKInstaller$Platform$1; local class incompatible: …
上级 8b8e751d
......@@ -55,6 +55,9 @@ Upcoming changes</a>
<!-- Record your changes in the trunk here. -->
<div id="trunk" style="display:none"><!--=TRUNK-BEGIN=-->
<ul class=image>
<li class=bug>
JDK installation failed on some slaves with <code>InvalidClassException: hudson.tools.JDKInstaller$Platform$1; local class incompatible: …</code>
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-14667">issue 14667</a>)
<li class=rfe>
Provide symlink support on all possible platforms when using Java 7+, including newer versions of Windows.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-13202">issue 13202</a>)
......
......@@ -490,11 +490,7 @@ public class JDKInstaller extends ToolInstaller {
* Determines the platform of the given node.
*/
public static Platform of(Node n) throws IOException,InterruptedException,DetectionFailedException {
return n.getChannel().call(new Callable<Platform,DetectionFailedException>() {
public Platform call() throws DetectionFailedException {
return current();
}
});
return n.getChannel().call(new GetCurrentPlatform());
}
public static Platform current() throws DetectionFailedException {
......@@ -504,6 +500,14 @@ public class JDKInstaller extends ToolInstaller {
if(arch.contains("sun") || arch.contains("solaris")) return SOLARIS;
throw new DetectionFailedException("Unknown CPU name: "+arch);
}
static class GetCurrentPlatform implements Callable<Platform,DetectionFailedException> {
private static final long serialVersionUID = 1L;
public Platform call() throws DetectionFailedException {
return current();
}
}
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册