remake rm = new remake();rm.setMU(mu);rm.doProcess();执行到第二句时,说没有改方法,但是,我检查过,有改方法,参数传递也没问题,传一个对象过去。并且,remake类编译后(使用JBuilder8),在编辑器中输入rm.能点出setMU()方法,为什么执行时就不行呢???如果没有第二句,就没问题了。
public class NoSuchMethodError extends IncompatibleClassChangeErrorThrown if an application tries to call a specified method of a class (either static or instance), and that class no longer has a definition of that method. Normally, this error is caught by the compiler; this error can only occur at run time if the definition of a class has incompatibly changed. 文档上是这么说的,你的这些代码也没法看出问题
嗯,有可能是你在别的包下边也有这个remake的class文件,你试试重新打包
this error can only occur at run time if the definition of a class has incompatibly changed. 我的问题好像就是这句话,在运行时出现Error,什么叫定义的类发生不兼容改变(the definition of a class has incompatibly changed)???
我的问题好像就是这句话,在运行时出现Error,什么叫定义的类发生不兼容改变(the definition of a class has incompatibly changed)???
原句是这样的,请大家帮我分析一下,现在只有一个test包,没有其他包了。