IntelliJ(Java 中)的“热插拔错误”是什么意思?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/24921820/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-14 15:44:48  来源:igfitidea点击:

What does "Hot Swap error" with IntelliJ (in Java) mean?

javaintellij-ideahotswap

提问by Niko

I have no idea what a hot swap is and for the life of me cannot construct a google search that will find what it means in the context of my program. I was editing my class, the same way I do all the time, and when I went to run it I all of a sudden got a

我不知道什么是热插拔,而且我一生都无法构建一个谷歌搜索来找到它在我的程序上下文中的含义。我正在编辑我的课程,就像我一直做的那样,当我去运行它时,我突然得到了一个

Hot Swap failed: myClassName: schema not implemented

热插拔失败:myClassName:架构未实现

error.

错误。

Can anyone explain this to me in Layman's terms?

谁能用外行的术语向我解释这一点?

采纳答案by Ricky Mutschlechner

You are attempting to change your source code while the program (or IntelliJ's debugger) is still running. This is what the HotSwap feature does according to IntelliJ's KB.

您正在尝试在程序(或 IntelliJ 的调试器)仍在运行时更改源代码。根据IntelliJ 的知识库,这是 HotSwap 功能所做的。

Please make sure your program and/or debugger is stopped before re-launching the program and the issue should be resolved.

在重新启动程序之前,请确保您的程序和/或调试器已停止,问题应该得到解决。