On Thu, 10 Oct 2024 19:05:51 GMT, Phil Race <[email protected]> wrote:
>> Do you mean via a lock or am I misunderstanding this? I assumed this >> `exit()` was called once because there is only one instance of >> DragSourceButton/DragSourcePanel which would be the only one calling >> `exit()`. > >> Do you mean via a lock or am I misunderstanding this? I assumed this >> `exit()` was called once because there is only one instance of >> DragSourceButton/DragSourcePanel which would be the only one calling >> `exit()`. > > OK. If that's the case then this should be fine The above explanation sounds correct. Looks like System.exit() is called only from child process. Parent process : test.start() creates DropTargetPanel() Child process: test.run(args) creates DragSourcePanel + DragSourceButton => DragSourceButton has the exit() call. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/21394#discussion_r1795971975
