提交 9d549042 编写于 作者: W william.liangf

DUBBO-144 ExtensionLoader没有用到的扩展点也依赖的三方库也会被加载报错

git-svn-id: http://code.alibabatech.com/svn/dubbo/trunk@699 1a56cb94-b969-4eaa-88fa-be21384802f2
上级 253248c9
......@@ -195,9 +195,14 @@ public class ExtensionLoader<T> {
}
}
StringBuilder buf = new StringBuilder("No such extension " + type.getName() + " by name " + name + ", possible causes: ");
for (IllegalStateException e : exceptions.values()) {
buf.append("\r\n====================================");
buf.append(StringUtils.toString(e));
int i = 1;
for (Map.Entry<String, IllegalStateException> entry : exceptions.entrySet()) {
buf.append("\r\n(");
buf.append(i ++);
buf.append(") ");
buf.append(entry.getKey());
buf.append(":\r\n");
buf.append(StringUtils.toString(entry.getValue()));
}
return new IllegalStateException(buf.toString());
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册