问题的关键就在于这句话:
AcceptMsg container=(AcceptMsg)msgList.get(acceptId);
而你的应用是
IupdateFrame upf = (IupdateFrame) "111";
由于interface can't have constructors 所以,你的用法是不能通过编译得。
而samplet中AcceptMsg container=(AcceptMsg)msgList.get(acceptId);
相信是直接把
msgList.get(acceptId); 返回的塑造成一个AcceptMsg 的对象了。
其中蕴含了很多技巧。
AcceptMsg container=(AcceptMsg)msgList.get(acceptId);
而你的应用是
IupdateFrame upf = (IupdateFrame) "111";
由于interface can't have constructors 所以,你的用法是不能通过编译得。
而samplet中AcceptMsg container=(AcceptMsg)msgList.get(acceptId);
相信是直接把
msgList.get(acceptId); 返回的塑造成一个AcceptMsg 的对象了。
其中蕴含了很多技巧。
thanks a lot, although I found the problem.