gpt4 book ai didi

java - 编译错误失败,而不是在运行时抛出 “Unresolved compilation problem”

转载 作者:行者123 更新时间:2023-12-02 10:52:26 25 4
gpt4 key购买 nike

编译包含错误的Java代码时,Visual Studio Code会生成字节代码抛出:

java.lang.Error: Unresolved compilation problem
如何禁用此设置?我希望Visual Studio Code不为包含编译错误的类生成任何字节代码。
供引用: Eclipse IDE has the same default behavior

最佳答案

当您运行一个出现sytax错误(一种编译错误)的项目时,它将首先显示为问题:
enter image description here
然后,您可以修复错误,或者选择继续,方法是单击Proceed,编译错误将显示在终端中:
enter image description here
因此,它实际上是由编译时间或运行时间分隔的。
如果您对这个问题有误解,请告诉我。

关于java - 编译错误失败,而不是在运行时抛出 “Unresolved compilation problem”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64418982/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com