The documentation should indicate that the agent currently being used throws an exception instead of exiting the JVM. If a program does a try/catch block around the System.exit call, this causes issues and likely confusion when simple tests "fail".
Instead of this...
try {
// Do something
System.exit(0);
} catch (Throwable t) {
t.printStackTrace();
System.exit(1);
}
... do this...
int exitCode = 0;
try {
// Do something
} catch (Throwable t) {
t.printStackTrace();
exitCode = 1;
}
System.exit(exitCode);
The documentation should indicate that the agent currently being used throws an exception instead of exiting the JVM. If a program does a try/catch block around the
System.exitcall, this causes issues and likely confusion when simple tests "fail".Instead of this...
... do this...