去掉RMI的类型转换不兼容

git-svn-id: http://code.alibabatech.com/svn/dubbo/trunk@229 1a56cb94-b969-4eaa-88fa-be21384802f2
This commit is contained in:
william.liangf 2011-11-10 05:58:34 +00:00
parent d3613d678a
commit 3d82de1295
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ public class RmiProtocol extends AbstractProtocol {
} catch (ClassNotFoundException e) {
ClassPool pool = ClassGenerator.getClassPool(type.getClassLoader());
CtClass ctClass = pool.makeInterface(remoteType);
ctClass.addInterface(pool.getCtClass(type.getName()));
// ctClass.addInterface(pool.getCtClass(type.getName()));
ctClass.addInterface(pool.getCtClass(Remote.class.getName()));
Method[] methods = type.getMethods();
for (Method method : methods) {