From 7e6a502ba3dea0777ef91fac4f912f33baf8673b Mon Sep 17 00:00:00 2001 From: "ding.lid" Date: Fri, 11 Nov 2011 06:56:32 +0000 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E4=B8=AD=E7=9A=84=E7=B1=BB?= =?UTF-8?q?=E5=90=8D=E4=B8=8D=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://code.alibabatech.com/svn/dubbo/trunk@250 1a56cb94-b969-4eaa-88fa-be21384802f2 --- .../main/java/com/alibaba/dubbo/common/ExtensionLoader.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dubbo-common/src/main/java/com/alibaba/dubbo/common/ExtensionLoader.java b/dubbo-common/src/main/java/com/alibaba/dubbo/common/ExtensionLoader.java index a1b6737bb2..a87aa90159 100644 --- a/dubbo-common/src/main/java/com/alibaba/dubbo/common/ExtensionLoader.java +++ b/dubbo-common/src/main/java/com/alibaba/dubbo/common/ExtensionLoader.java @@ -317,11 +317,11 @@ public class ExtensionLoader { clazz.getConstructor(); Extension extension = clazz.getAnnotation(Extension.class); if (extension == null) { - throw new IllegalStateException("No such @Extension annotation in class " + type.getName()); + throw new IllegalStateException("No such @Extension annotation in class " + clazz.getName()); } String name = extension.value(); if (name == null || name.length() == 0) { - throw new IllegalStateException("Illegal @Extension annotation in class " + type.getName()); + throw new IllegalStateException("Illegal @Extension annotation in class " + clazz.getName()); } String[] names = NAME_SEPARATOR.split(name); for (String n : names) {