1

When compiling Java code with errors in it, Visual Studio Code generates byte code throwing:

java.lang.Error: Unresolved compilation problem

How can this setting be disabled? I would like Visual Studio Code not to generate any byte code for classes containing compilation errors.

For reference: Eclipse IDE has the same default behavior.

Danilo Piazzalunga
  • 7,590
  • 5
  • 49
  • 75

1 Answers1

1

When you run a project with sytax error(one kind of compilation error), it will first show as problems:

enter image description here

Then you can fix the error, or choose to continue by clicking the Proceed, the compilation error will be shown in the Terminal:

enter image description here

So it's indeed separated by compile time or run time. If there's misunderstanding about your question, please let me know.

Molly Wang-MSFT
  • 7,943
  • 2
  • 9
  • 22