Nicolas Labrot opened SPR-16607 and commented
ThreadPoolTaskExecutor#submitListenable returns a future that will not be canceled when the executor is shutdown. By consequence Future#get will block indefinitely.
I would like to propose that the list of Runnable returned by this.executor.shutdownNow(); is used to cancel the ListenableFuture.
Affects: 5.0.4
Issue Links:
Referenced from: commits 3c1adf7, 9939908