提交 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> { ...@@ -195,9 +195,14 @@ public class ExtensionLoader<T> {
} }
} }
StringBuilder buf = new StringBuilder("No such extension " + type.getName() + " by name " + name + ", possible causes: "); StringBuilder buf = new StringBuilder("No such extension " + type.getName() + " by name " + name + ", possible causes: ");
for (IllegalStateException e : exceptions.values()) { int i = 1;
buf.append("\r\n===================================="); for (Map.Entry<String, IllegalStateException> entry : exceptions.entrySet()) {
buf.append(StringUtils.toString(e)); 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()); return new IllegalStateException(buf.toString());
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册