求助:"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