You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
org.assertj.swing.timing.Pause has an ExecutorService. It's static and cannot be closed. It means that we have non-daemon threads hanging in there and preventing the JVM to finish.
Without the reflection code at the end, it won't exit for a while.
The easiest solution is to add a static close() method to shutdown the pool. But I think the best is to change the code to rely on the commonPool, e.g. ForkJoinPool.commonPool().submit() or a CompletableFuture.
The text was updated successfully, but these errors were encountered:
henri-tremblay
added a commit
to henri-tremblay/assertj-swing
that referenced
this issue
Jul 2, 2022
org.assertj.swing.timing.Pause
has an ExecutorService. It's static and cannot be closed. It means that we have non-daemon threads hanging in there and preventing the JVM to finish.An example is
Without the reflection code at the end, it won't exit for a while.
The easiest solution is to add a static
close()
method to shutdown the pool. But I think the best is to change the code to rely on the commonPool, e.g.ForkJoinPool.commonPool().submit()
or a CompletableFuture.The text was updated successfully, but these errors were encountered: