Why is this an issue?
System.exit(int status) or
Rutime.getRuntime().exit(int status) calls the shutdown hooks and shuts downs the
entire Java virtual machine. Calling
Runtime.getRuntime().halt(int) does an immediate shutdown, without calling the shutdown hooks, and
Each of these methods should be used with extreme care, and only when the intent is to stop the whole Java process. For instance, none of them
should be called from applications running in a J2EE container.
Noncompliant code example
These methods are ignored inside