我有一个非常奇怪的问题。我有一个在 Eclipse 中构建的应用程序。
我有一行被注释掉了。
//System.out.println("starting new thread with conf: " + Main.config("instruments"));
我点击了运行按钮,但我仍然在控制台中看到此输出。我添加了更多输出。
System.out.println("What the hell");
//System.out.println("starting new thread with conf: " + Main.config("instruments"));
但是在控制台中我仍然看到这个(如下),没有添加新的输出 iv
starting new thread with conf: EUR_USD%2CGBP_USD
值得注意的是,此(文件夹)工作区与虚拟机共享。
Eclipse 是否有某种缓存导致这种情况发生?
最佳答案
缺少外部 Jar 文件。由于某种原因,这导致更新的代码没有输出到控制台。
关于java - Eclipse 在控制台中显示旧输出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40677021/