Sometimes you just do some typo in code but compiler will output dozens of errors, (actually it just fails to compile efter the first typo). So it would be very convenient sometimes to limit the compiler output to first error detected. GCC/Clang will accept -Wfatal-errors
, can javac
do the same? I am using JDK7 for Windows.
See this answer: https://stackoverflow.com/a/3115546/500478
You can use -Xmaxerrs
and -Xmaxwarns
to set the maximal number of errors/warnings before javac
gives up.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With