提交 e1e0237f 编写于 作者: K kohsuke

work around for bug 6933067.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30091 71c3de6d-444a-0410-be80-ed276b4c234a
上级 ba9136a8
......@@ -84,6 +84,14 @@ public abstract class ExtensionFinder implements ExtensionPoint {
*/
public abstract <T> Collection<ExtensionComponent<T>> find(Class<T> type, Hudson hudson);
/**
* A pointless function to work around what appears to be a HotSpot problem. See HUDSON-5756 and bug 6933067
* on BugParade for more details.
*/
public <T> Collection<ExtensionComponent<T>> _find(Class<T> type, Hudson hudson) {
return find(type,hudson);
}
/**
* The default implementation that looks for the {@link Extension} marker.
*
......
......@@ -224,7 +224,7 @@ public class ExtensionList<T> extends AbstractList<T> {
List<ExtensionComponent<T>> r = new ArrayList<ExtensionComponent<T>>();
for (ExtensionFinder finder : finders()) {
try {
r.addAll(finder.find(extensionType, hudson));
r.addAll(finder._find(extensionType, hudson));
} catch (AbstractMethodError e) {
// backward compatibility
for (T t : finder.findExtensions(extensionType, hudson))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册