BBS水木清华站∶精华区
发信人: sheen (星矢胖胖熊-一切都会有的), 信区: Java
标 题: Re: 有关于Method getMethod(String,Class[])方法求助
发信站: BBS 水木清华站 (Mon Mar 8 09:02:06 1999)
I have try, but the same result: 无法调用此方法
【 在 wingzhang (scott) 的大作中提到: 】
∶ you may try as following:
∶ Object[] realArgs = new Object[2];
∶ String[] strArgs = {"aa","bb"};
∶ Integer intArgs = ....;
∶ realArgs[0] = strArgs;
∶ realArgs[1] = intArgs;
∶ thisMethod.invoke(thisClass,realArgs);
∶ ..
--
※ 来源:·BBS 水木清华站 bbs.net.tsinghua.edu.cn·[FROM: 166.111.78.145]
BBS水木清华站∶精华区