提交 5627b7b4 编写于 作者: J Jesse Glick

Merge pull request #2037 from jglick/bugs.sun.com

Replacing links to bugs.sun.com
...@@ -175,7 +175,7 @@ public abstract class ExtensionFinder implements ExtensionPoint { ...@@ -175,7 +175,7 @@ public abstract class ExtensionFinder implements ExtensionPoint {
* from here. * from here.
* *
* <p> * <p>
* See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6459208 for how to force a class initialization. * See https://bugs.openjdk.java.net/browse/JDK-4993813 for how to force a class initialization.
* Also see http://kohsuke.org/2010/09/01/deadlock-that-you-cant-avoid/ for how class initialization * Also see http://kohsuke.org/2010/09/01/deadlock-that-you-cant-avoid/ for how class initialization
* can results in a dead lock. * can results in a dead lock.
*/ */
...@@ -668,8 +668,7 @@ public abstract class ExtensionFinder implements ExtensionPoint { ...@@ -668,8 +668,7 @@ public abstract class ExtensionFinder implements ExtensionPoint {
extType = ((Method)e).getReturnType(); extType = ((Method)e).getReturnType();
} else } else
throw new AssertionError(); throw new AssertionError();
// according to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6459208 // according to JDK-4993813 this is the only way to force class initialization
// this appears to be the only way to force a class initialization
Class.forName(extType.getName(),true,extType.getClassLoader()); Class.forName(extType.getName(),true,extType.getClassLoader());
} catch (Exception | LinkageError e) { } catch (Exception | LinkageError e) {
LOGGER.log(logLevel(item), "Failed to scout "+item.className(), e); LOGGER.log(logLevel(item), "Failed to scout "+item.className(), e);
......
...@@ -12,7 +12,6 @@ import java.lang.reflect.Proxy; ...@@ -12,7 +12,6 @@ import java.lang.reflect.Proxy;
* *
* @author Kohsuke Kawaguchi * @author Kohsuke Kawaguchi
* @since 1.487 * @since 1.487
* @see <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7199848">Related bug report against JDK</a>
*/ */
public class InitializationErrorInvocationHandler implements InvocationHandler { public class InitializationErrorInvocationHandler implements InvocationHandler {
private final Throwable cause; private final Throwable cause;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册