On Wed, 27 Sep 2023 20:33:49 GMT, Weijun Wang <wei...@openjdk.org> wrote:

> Remove most `System.exit()` calls in various security tools and only leave 
> one in the `main` method. This paves the way to convert them to JSR 199 tools.
> 
> Note: before this change, the behavior of a successful `main()` method 
> execution is not consistent. Sometimes the method returns silently, sometimes 
> a `System.exit(0)` is called somewhere. After this change, the method always 
> returns silently. This makes sure that existing programs that calls the 
> `main` method directly will continue and does not exit the VM.

This pull request has now been integrated.

Changeset: 1ddf826a
Author:    Weijun Wang <wei...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/1ddf826aea7fd18209336dce550821638d5ef89c
Stats:     471 lines in 8 files changed: 263 ins; 113 del; 95 mod

8316964: Security tools should not call System.exit

Reviewed-by: valeriep

-------------

PR: https://git.openjdk.org/jdk/pull/15951

Reply via email to