专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > J2SE

:"obsolete methods"的有关问题

发布时间:2010-06-05 05:30:59 文章来源:www.iduyao.cn 采编人员:星星草
求助:"obsolete methods"的问题
Debugger提供的信息如下:
CodeGenerater   at   localhost:3365   contains   obsolete   methods.
Reason:
The   virtual   machine   was   unable   to   remove   all   stack   frames   running   old   code   from   the   call   stack.   The   virtual   machine   is   not   supplying   the   debugger   with   valid   data   for   those   frames.   Stepping   into   these   obsolete   frames   may   be   hazardous   to   the   target   virtual   machine.

问题是这样的:
CodeGenerater动态生成文件tempClass.java,然后编译该java文件,调用tempClass.run().然后CodeGenerater以新的内容覆盖tempClass.java,再编译,再调用tempClass.run(),但是新的tempClass.run()似乎没有执行一样.

根据Debugger提供的信息,我猜想CodeGenerater依然调用的是旧有的tempClass.run(),所以导致错误,请问各位高手,如果让CodeGenerater能够调用上新的tempClass.run()啊?




------解决方案--------------------
up
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: